Skip to content

Commit e37300e

Browse files
committed
Remove anonymous user support from authentication patterns
- Remove anonymous user clientId pattern from schema documentation - Change default notebook ownerId fallback from 'anonymous' to 'unknown' - Runt system is designed for authenticated users only, no anonymous access
1 parent 6f105f2 commit e37300e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schema/mod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export * from "./queries/index.ts";
3535
*
3636
* USER CLIENTS (runtime: false/undefined):
3737
* - Regular users: clientId = userId-{uniqueId} (e.g. "user123-abc-def-ghi")
38-
* - Anonymous users: clientId = "anonymous-{uniqueId}" (e.g. "anonymous-abc-def-ghi")
38+
3939
* - User clients use OIDC tokens for authentication
4040
* - User ID is passed separately in sync payload for authorization
4141
* - ClientId identifies device/app instances following LiveStore best practices
@@ -1253,7 +1253,7 @@ export function getNotebookInfo(
12531253
) {
12541254
return {
12551255
title: getNotebookMetadata(metadataRecords, "title", "Untitled"),
1256-
ownerId: getNotebookMetadata(metadataRecords, "ownerId", "anonymous"),
1256+
ownerId: getNotebookMetadata(metadataRecords, "ownerId", "unknown"),
12571257
runtimeType: getNotebookMetadata(metadataRecords, "runtimeType", "python3"),
12581258
isPublic:
12591259
getNotebookMetadata(metadataRecords, "isPublic", "false") === "true",

0 commit comments

Comments
 (0)