You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const handler = NextAuth({
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET
})
],
async session({ session }) {
// Your session logic here
},
async signIn({ Profile }) {
// Your sign-in logic here
},
});
export { handler as GET, handler as POST `};
/
console.log({ clientId: process.env.GOOGLE_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, });
is for debugging purposes only but when i run it it shows this { clientId: undefined, clientSecret: undefined }
i have 2 questions
should i worry about it or not? (i should because the are not defined in the debugging phase so the production)
how to fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
have this inside route.js
`{import NextAuth from 'next-auth';
import GoogleProvider from 'next-auth/providers/google';
console.log({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
});
const handler = NextAuth({
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET
})
],
async session({ session }) {
// Your session logic here
},
async signIn({ Profile }) {
// Your sign-in logic here
},
});
export { handler as GET, handler as POST `};
/
console.log({ clientId: process.env.GOOGLE_ID, clientSecret: process.env.GOOGLE_CLIENT_SECRET, });
is for debugging purposes only but when i run it it shows this
{ clientId: undefined, clientSecret: undefined }
i have 2 questions
should i worry about it or not? (i should because the are not defined in the debugging phase so the production)
how to fix it?
Beta Was this translation helpful? Give feedback.
All reactions