WaspW
Wasp10mo ago
WWWillems

Different ways to get the sessionId for a custom API call

I need to attach the Bearer authorization header to a custom API call.
I am currently getting the wasp:sessionId from localstorage, which is not ideal.

If I'm not mistaken there was an endpoint to fetch the sessionId from the backend? What is the call/endpoint again?
Was this page helpful?