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
Hi,
I am using next-auth to login to my custom backend. First, I set login system by providing credentials, I send data to my API and get JWT token in response, everything works. Now, I would like to log in by facebook, and all the things are managed through the backend. From frond-end I navigate to special URL, and as a result backend log In via facebook nad redirect to frontend with /?token=JWTtoken param in URL. Now, how can I log in user ( set cookie next-auth.session-token ) based on this param?
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using next-auth to login to my custom backend. First, I set login system by providing credentials, I send data to my API and get JWT token in response, everything works. Now, I would like to log in by facebook, and all the things are managed through the backend. From frond-end I navigate to special URL, and as a result backend log In via facebook nad redirect to frontend with
/?token=JWTtoken
param in URL. Now, how can I log in user ( set cookienext-auth.session-token
) based on this param?Beta Was this translation helpful? Give feedback.
All reactions