Can't access global functions or sessionStorage

Hello @apoorv-2204!

If you are using a bearer token, you’d want to store it at the resource level which will then apply your authorization headers when you use the resource in an app/workflow.

If you need to call upon a separate endpoint to obtain the Bearer token, you would use the Custom Auth option and choose the appropriate authorization type:

The return of this would be set with the “Define a variable” option as a next step in the Custom Auth flow:

Then you define the final header setup near the top of the resource settings:

3 Likes