Skip to content

Commit

Permalink
Fix refresh token payload structure on shared refresh (#10875)
Browse files Browse the repository at this point in the history
Fixes #10822
  • Loading branch information
rijkvanzanten committed Jan 5, 2022
1 parent 6a3ee1e commit e4db9b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/services/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e4db9b2

Please sign in to comment.