How to Retrieve the User ID with OAuth (Google Provider) in authjs?
I’ve successfully implemented sign-in and sign-out functionality using the Google provider in authjs. However, I’ve encountered an issue: when a user is logged in, I don’t have a unique identifier to associate their data in the database.
How to Retrieve the User ID with OAuth (Google Provider) in authjs?
I’ve successfully implemented sign-in and sign-out functionality using the Google provider in authjs. However, I’ve encountered an issue: when a user is logged in, I don’t have a unique identifier to associate their data in the database.