diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index caf543e..b1515f4 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -61,6 +61,7 @@ export const authOptions: NextAuthOptions = { callbacks: { async jwt({ token, account, profile }) { if (account && profile) { + token.sub = profile.sub; token.accessToken = account.access_token; token.refreshToken = account.refresh_token; token.accessTokenExpires = account.expires_at! * 1000;