Hello,
We have setup a custom auth for all our applications. Here is the setup:
- We have setup a resource to a GraphQL endpoint
- We use a form with email + password
- Once logged in, an AUTHORIZATION_TOKEN is stored in the "magic" variables
- A "check" query is run using this GraphQL resource, to ensure the user is logged in.
- If the user is not logged in, the query will fail and a modal is shown to re-authenticate the user.
Some (not all) of our users are unable to use this and are blocked using our Retool apps. The authentication is successful (email + password are correct) but the AUTHORIZATION_TOKEN is not stored/used properly and the check query fails, blocking the user in a loop (modal wil reopen). Sometimes, it works, sometimes it doesn't.
We can guarantee that the problem is not from the email + password, as the user uses those credentials in our own systems and they are correct and work as expected. The problem is highly likely a bug because it works for some users and not for others. In the Resource setup, looking at the defined variables, the variable is set correctly.
We have tried everything:
- Update the resource
- Clear cookies
- Clear local storage
- Change browser
- Incognito mode
- Tried in edit mode
- Tried in different Retool apps
Can you help solving this issue?
Regards