Can i create a session from api route? #2536
Unanswered
niklasgrewe
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Hey @niklasgrewe sorry for the delay, I've been on vacation. Are you still having this problem? Also where does |
Beta Was this translation helpful? Give feedback.
0 replies
-
I am wondering about this too @flybayer @niklasgrewe. How would you go about it? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a custom api route, to validate a token. I want to create a new user session from this api endpoint. How can i do that? At the moment, my api route looks something like this:
The route works. A new session will be created and the user will be redirected to there page. But on the server console, i get a
CSRFTokenMismatchError
, although I send the CSRF token with it. Where is my mistake? How can i solve this?Beta Was this translation helpful? Give feedback.
All reactions