We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 799ecfc commit bb04c59Copy full SHA for bb04c59
app/api/auth/[...nextauth]/options.ts
@@ -73,8 +73,10 @@ export const authOptions: AuthOptions = {
73
},
74
async session({ session, token }: { session: Session; token: JWT }) {
75
// Send properties to the client
76
- session.access_token = encrypt(token.access_token as string);
77
- session.id_token = encrypt(token.id_token as string);
+ // session.access_token = encrypt(token.access_token as string);
+ // session.id_token = encrypt(token.id_token as string);
78
+ session.access_token = (token.access_token as string);
79
+ session.id_token = (token.id_token as string);
80
session.roles = (
81
token.decoded as {
82
realm_access: { roles: string[] };
0 commit comments