Next.js Discord

Discord Forum

NextAUTH and custom api

Unanswered
Spot-billed Duck posted this in #help-forum
Open in Discord
Spot-billed DuckOP
Hi,
I got my backend working with sessions, and I was asking how I can implement this api with nextauth.
Thanks

8 Replies

Spot-billed DuckOP
(my api supports google auth, and credentials auth)
@Spot-billed Duck (my api supports google auth, and credentials auth)
Broad-billed Sandpiper
next auth has its own credentials provider , google provider
@Broad-billed Sandpiper next auth has its own credentials provider , google provider
Spot-billed DuckOP
yeah I know, but my backend handle that, I just want nextauth for sessions that's all
credentials, google, everything is handle by my backend
@Spot-billed Duck yeah I know, but my backend handle that, I just want nextauth for sessions that's all
what do you mean by "nextauth for session"?
if your backend is handling everything, I don't think you need next-auth
@Ray what do you mean by "nextauth for session"? if your backend is handling everything, I don't think you need next-auth
Spot-billed DuckOP
It was for accessing to the user easily, but in fact the session is returned to the browser, so maybe I shouldn't use nextauth
Spot-billed DuckOP
mhh yup maybe, it would be easier