next-auth Questions
2
I have weird problem and I don't know where the problem is. I use next-auth library to make authentication system in my Next.js app.
Everything is OK - I can sign in by checking if there is account...
Pesce asked 28/10, 2020 at 16:4
3
I am using Nextjs with next-auth for authentication with node.js at the backend . Now , I am setting my cookies in node.js and it works correctly in postman. I can authenticate ,without any i...
Hinny asked 3/7, 2021 at 10:4
1
Solved
I have decided to attempt to move majority of my API function to SWR as it simply allows me to do so much more!
Problem
However, I am having a huge issue where I cannot figure out how to properly p...
Bucephalus asked 24/10, 2021 at 5:15
1
Solved
I am using typescript and my [...next-auth].tsx file looks like this:
import NextAuth, { Awaitable, Session, User } from "next-auth";
// import GithubProvider from "next-auth/provide...
Sheena asked 17/10, 2021 at 8:50
2
I have a NextJS page where I try to implement Next-Auth.
I use credentials to login to my Rails API.
My API is returning (already) a JWT-Token. (so NextAuth must not create it)
How to implement t...
Evilminded asked 7/9, 2021 at 10:23
0
Struggling to find a way to link an existing user with google oAuth using next-auth, here is my situation.
The flow is a bit odd for my case I believe; A user has the option to create a "Proje...
1
Solved
What's the difference between useSession and getSession in next-auth? Both seems to be returning session object.
2
I'm trying to do a credentials auth with next-auth. I have to use a custom sign-in page and I absolutely can't make it work for approximately one entire week.
I have :
// [...nextauth.js]
impo...
0
Next.js allows you to build your site with either server-side (SSR) or static client-side (SSG) rendering, but when you run next build && next export it removes the /api routes.
Since NextA...
Springfield asked 20/8, 2021 at 22:9
0
So far, in my Next.js app I've done my signup.
I was asked to do authentication (login) using next-auth with custom credentials. I have to make a rest API endpoint: api/auth/login.
I know how to do...
Pearlstein asked 9/7, 2021 at 17:9
1
Solved
I am trying to implement NextAuth with Credentials (email and password).
I have set up my mongodb for this. I also set up /api/proile/ route to post login credentials and tested it out with Postma...
Zinazinah asked 9/6, 2021 at 10:2
0
I couldn't get req.cookies, even req.headers as it return empty object and undefined.
I tried 'request.credentials' value with include and same-origin, both not working.
I can get req.cookies from ...
Terceira asked 29/5, 2021 at 3:44
2
Solved
I have an exiting Django project that I am trying to move from templates to NextJs frontend. I came across Next-Auth-js which seems to be nice in Next Auth.
However, the doc seems to focus more wit...
Alcinia asked 21/10, 2020 at 3:3
0
I use several providers, including credentials provider (email & password)
At some point, in the app, user can ask for 'restore password' email where he should get one-time link.
After he visit...
1
Solved
I have been working on a Next.js app with a custom backend using Django Rest Framework, with the main focus on authentication with social platforms (Google, Github etc). Here's the flow I am wantin...
Rapallo asked 20/2, 2021 at 6:46
1
Solved
I return the following JSON after confirming credentials:
{username: 'foo', name: 'bar', type: 123}
However, NextAuth does not allow me to store all the fields due to model limitations, so what it...
1
So, I looked for a few authentication options for Next.js that wouldn't require any work on the server side of things. My goal was to block users from entering the website without a password.
I've ...
Heterochromatin asked 1/3, 2021 at 20:36
1
Solved
I am using Okta with next-auth.js. Since I'm only using 1 providers (I will be using more providers inside Okta login), may I just skip this page and go directly to Okta login page? If yes, how?
Olmstead asked 27/2, 2021 at 18:9
1
Solved
I am attempting to implement NextAuth in my NextJs app. I am following the official documentation. But for one reason or the other, it seems like the user session object is not generated on login.
...
© 2022 - 2024 — McMap. All rights reserved.