Add variables to local storage from auth workflow

Hi! We have custom authentication set up to our own api and it is working just as expected. The response from the authentication sends back some user information from our system (custom permissions for one). I have tried adding in a step in the workflow that will add that object to local storage but it does not seem to do anything:

Am I missing something? Or is this something not supported? I would like to not have to make an additional api call to retrieve this information.

Hey @Chris_Bartlett unfortunately, the localStorage API is not currently available in the JS sandbox in custom authentication. I have submitted a feature request for this, and can update you here as we get any additional information to share.

Thank you for the response. We ended up just wiring up another api call (not optimal) to our back end to retrieve the needed data.

1 Like