how can I sing in a user using google oauth from sever side?
socialProviders: {
google: {
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
// prompt: "select_account", // optional: always show account picker
// accessType: "offline", // optional: to get refresh token
},
},
FYI the client side (authClient) works fine. However the server side auth instance returns this error.
google: {
clientId: process.env.GOOGLE_CLIENT_ID as string,
clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
// prompt: "select_account", // optional: always show account picker
// accessType: "offline", // optional: to get refresh token
},
},
FYI the client side (authClient) works fine. However the server side auth instance returns this error.