diff --git a/api/src/services/authentication.ts b/api/src/services/authentication.ts index 82894de340..a639ec81c5 100644 --- a/api/src/services/authentication.ts +++ b/api/src/services/authentication.ts @@ -321,6 +321,10 @@ export class AuthenticationService { collection: record.share_collection, item: record.share_item, }; + tokenPayload.app_access = false; + tokenPayload.admin_access = false; + + delete tokenPayload.id; } const customClaims = await emitter.emitFilter(