Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issues using Next Auth #1704

Answered by oreoluwa-bs
oreoluwa-bs asked this question in Q&A
Discussion options

Is any one having any Issues with using next auth on Netlify.

My app worked fine a couple of days ago, but I get this server error. Its strange because swr and next-auth aren't really used together. Everything works well locally

Screenshot 2022年10月21日 at 22 20 24

Making a request to any route created by next-auth i.e api/auth/session - results in the above error.

Any help would much appreciated

You must be logged in to vote

Figured out the issue. I was importing swr before next-auth

Replies: 2 comments

Comment options

Also getting a CLIENT_FETCH_ERROR despite the NEXTAUTH_URL variable being present
image

You must be logged in to vote
0 replies
Comment options

Figured out the issue. I was importing swr before next-auth
Screenshot 2022年10月23日 at 14 49 15

Screenshot 2022年10月23日 at 14 29 09

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

AltStyle によって変換されたページ (->オリジナル) /