Next.js Discord

Discord Forum

NextAuth GithubProvider error

Answered
QBit posted this in #help-forum
Open in Discord
Avatar
I am getting this error shown in the image:

my env.local:
GITHUB_ID=cool
GITHUB_SECRET=baar


How to resolve this?
Image
Answered by James4u
add ! at the endof GITHUB_ID and GITHUB_SECRET
View full answer

5 Replies

Avatar
@QBit that's typescript error not NextAuth
Avatar
add ! at the endof GITHUB_ID and GITHUB_SECRET
Answer
Avatar
or the best approch is to check env variables before the action
Avatar
ok, let me do
thanks