The NextAuth.js client library makes it easy to interact with sessions from React applications.
#delete post
13 messages · Page 1 of 1 (latest)
you have to put it server side
getServerSideProps I think (Im actually use NextAuth too for first time haha)
or inside Context, Im using tRCP
I can put session inside each routes
on authorize function?
what return 'ok'?
what return response? 😂
you have to check if email/password are good on your database
then login return 200 and 400?
the doc say to return user info, so I think yes
anyway if the login/password was correct, even if user info was send to client
It 's the good user, so no problem 🤷♂️