I'm trying to override the user object that auth.js session gives you
1 Reply
make a nextauth.d.ts file with something like that
it will make session.user have an optional accessToken prop
or
for having a token on your session object
somehting like that
https://authjs.dev/guides/basics/role-based-access-control
but for 'accessToken' instead of 'role'
you could also check for profile