ERROR 500 USING NEXTAUTH
Unanswered
Basset Bleu de Gascogne posted this in #help-forum
Basset Bleu de GascogneOP
I am getting ERROR 500 using netxauth I followed muiltple tutorials and guides and these seemed like the code for approuter however it does not seem to work
import NextAuth from "next-auth";
import GithubProvider from "next-auth/providers/github";
console.log("OAUTH_CLIENT_ID:", process.env.OAUTH_CLIENT_ID);
console.log("OAUTH_CLIENT_SECRET_KEY:", process.env.OAUTH_CLIENT_SECRET_KEY);
export const authOptions = {
secret: "YegyDIZNJPqxOkGS4K0F/o9l3SjCxCUR4Q/45rGyOtA=",
providers:[
GithubProvider({
clientId:process.env.OAUTH_CLIENT_ID ?? "",
clientSecret:process.env.OAUTH_CLIENT_SECRET_KEY ?? "",
}),
],
}
export const handler = NextAuth(authOptions);
export {handler as GET, handler as POST};1 Reply
Basset Bleu de GascogneOP
Error