NextAuth & AWS Cognito SignOut issues
I'm currently facing an issue with Next.JS and NextAuth when signing a user out. Also to note I'm using AWS Cognito as the provider with AWS Cognito's hosted UI for the user to input their credentials.
The issue happens when a user is logged in, and chooses to signOut using NextAuth's signOut method, but when they sign back in it automatically signs the user with the same account.
E.g. Account A is signed in and they want to login to Account B, but when logging out, and logging back in it automatically signs back into Account A without asking for credentials.
0 Replies