Skip to content

Passing Custom Value in DB during Oauth Login #12243

Closed Answered by radioac7iv3
radioac7iv3 asked this question in Help
Discussion options

You must be logged in to vote

For people facing similar issue, I just Figured it out, Looks like in my auth.ts file I had specify the table that i am using :

adapter: DrizzleAdapter(db, {
        usersTable: user,
        accountsTable: accounts,
    }),

and then it worked like a charm.

Edit Pass your values like this inside your ouath provider:

Google({
           clientId: process.env.GOOGLE_CLIENT_ID,
           clientSecret: process.env.GOOGLE_CLIENT_SECRET,

           profile(profile) {
               return {
                   id: '2e5929c1-f9a7-484b-af0b-e701f9443038',
                   name: 'Test user',
                   email: '[email protected]',
                   image: 'https://someURL',
         …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radioac7iv3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant