Through the API I register a new user and get a token which I write to session coocies. How can I use this token on another page inside the API, to specify it as sessionId in API headers. Is there a global variable in toddle or some other way?
Lucas G
4 months ago
There is a cookies node. Put in the “Authorization” header and it’ll populate it for it
Also, the go to URL action needs to be in the success event of the “Set Session Cookies”
Higolol
4 months ago
I moved the construct that is formed in headers when Auth is specified to parameters. In this case, it gives me the wrong link, so I hard-coded the token in sessionID - everything works fine!
Kamil
4 months ago
Hey @Higolol I just found you post here. You need to remove "Bearer" from your sessionID query.
Higolol
4 months ago
I did it. It das not work ^^( I will try again, but..