Session coocies or global veraible

  • /attachments/1319973889966870590/1319973890293891102/image.png

    Higolol

    25 days ago

    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?
    image.png
    image.png
  • Lucas G

    24 days 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
  • /attachments/1319973889966870590/1320882658464760018/image.png

    Higolol

    22 days 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!
    image.png
    image.png
  • Kamil

    22 days ago

    Hey @Higolol I just found you post here. You need to remove "Bearer" from your sessionID query.
  • Higolol

    22 days ago

    I did it. It das not work ^^(
    I will try again, but..
  • Kamil

    22 days ago

    I have sent you a working example for Directual

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.