You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
like next auth depends upon the database adapter , what if someone's database is not in next js .
like i have prisma in my nest js project with a great schema , account , user, tokens ,blacklisting etc
i don't want to be redundant having two prisma files and , and like generating types on both sides etc .
and i did not find a solution like using it without a database adapter , my oauth is in nest js with custom strategies and guards.
next auth is nice when you want to have a solution only in nextjs , like it is limited , but if backend is somewhere else , like an api , it is a disaster i guess.
Proposal
we could write a seperate abstraction for it , or enhanced the current one. if this is to be impleemented , i think providing a sepearte function is better , where we don;t really need to provide things that are related to database.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
Non-Goals
No response
Background
like next auth depends upon the database adapter , what if someone's database is not in next js .
like i have prisma in my nest js project with a great schema , account , user, tokens ,blacklisting etc
i don't want to be redundant having two prisma files and , and like generating types on both sides etc .
and i did not find a solution like using it without a database adapter , my oauth is in nest js with custom strategies and guards.
next auth is nice when you want to have a solution only in nextjs , like it is limited , but if backend is somewhere else , like an api , it is a disaster i guess.
Proposal
we could write a seperate abstraction for it , or enhanced the current one. if this is to be impleemented , i think providing a sepearte function is better , where we don;t really need to provide things that are related to database.
Beta Was this translation helpful? Give feedback.
All reactions