Skip to content

Commit

Permalink
tweak(packages/identity): update session type and requested scope
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-rl committed Jan 13, 2024
1 parent a401d98 commit fd3cd60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/identity/logto/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export const logtoClient = new LogtoClient({
cookieSecret: process.env.COOKIE_SECRET,
cookieSecure: false,
resources: [process.env.NEXT_PUBLIC_RESOURCE_AUDIENCE],
scopes: ['email', 'identities', 'read:all'],
scopes: ['email', 'identities', 'read:all', "write:all", "read:pagemetadata"],
});
3 changes: 3 additions & 0 deletions packages/identity/types/logto-auth.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
interface V2Session {
logto_id: string;
id: string;
provider: string;
providerId: string | number;
name: string;
image: string;
logto_username: string;
blacklisted: boolean;
scope: Array<string>;
hasScope: (requiredScope: Array<string>) => boolean;
}

export { V2Session };

0 comments on commit fd3cd60

Please sign in to comment.