Refresh custom auth workflow

Per the docs. Custom API authentication

I tried to get this to work but a variable defined in the login workflow needs to be passed in the refresh workflow but when I reference the variable in the code editor it say it is not defined. If I click the button to show defined variables it is there. Is the a limitation that does not allow auth workflow variables to be referenced in the refresh auth workflow?

Ajay

1 Like

Hi @ajay-desai! Welcome to the community. :slightly_smiling_face:

You definitely can reference variables declared in the primary auth flow from within the refresh flow. The value of these variables are obscured to the client, though, which is likely the reason it's showing up as undefined. Retool will replace those "magic" variables with their actual value when the request goes through the server!

I hope that helps! Let me know if you have any questions.