Join the Webstudio community

Updated 2 months ago

Store session ID or token for auth

At a glance

The community member is asking how to store a session ID or token to remain logged in after connecting an authentication API and retrieving user data. A community member responds that the session ID or token would be stored in the browser, like in local storage, but the Webstudio platform currently does not have an interface for that. The original poster thanks the community member and says they will test this after building more needed parts.

Is there a way to store a session ID or token? I've connected an auth API and can return my user data, but I think I need to store something to remain logged in.

Full disclosure: this is my first attempt at setting up any Auth.
J
J
2 comments
It would be stored in the browser like in local storage. Webstudio doesn't have an interface for that. Maybe in the future there will be something like an api that can interact with resources for example
Thanks @John Siciliano, I'll try to test this after I build a few more needed parts.
Add a reply
Sign up and join the conversation on Discord