Skip to main content
← Data, API & Backend
Data, API & Backend Solved December 13, 2022 · 14 replies

Auth token for Xano not saving

Archived from the Bravo community forum (2021–2026). Some answers may refer to older versions of Bravo.

UPD: The issue was solved by refactoring the API collection, like in the tutorial: https://docs.bravostudio.app/integrations/user-authentication/authentication-with-custom-backend

Hello, dear community.
I've faced the issue that arrived not a long time ago. When creating a new user for testing I have my requests giving 401 errors like auth token not saved in Bravo.

It's weird because with my ordinary user all work well. I thought that I didn't set up headers correctly, but no:

CleanShot 2022-12-13 at [email removed]

In Xano it's showing that auth token hasn't been sent

CleanShot 2022-12-13 at [email removed]

And in one request Bravo is sending token

CleanShot 2022-12-13 at [email removed]

And on the next one - not

CleanShot 2022-12-13 at [email removed]

On Bravo side, both of these requests are having the token

CleanShot 2022-12-13 at [email removed]

CleanShot 2022-12-13 at [email removed]

14 replies

minaelhamy December 13, 2022

How did you initially saved it on bravo? Is it authtoken or authToken? Remember its case sensetive

minaelhamy December 13, 2022

What happens when you put the token in test values and send?

minaelhamy December 14, 2022

ok this definitely means that the authtoken is not passed while you are navigating to this page, make sure you are using an api for navigation that returns the authtoken so you can save it and its passed to this page

Mykyta December 14, 2022

I have two api endpoints that return token — login and registration. Then it was stored in authtoken variable.

It worked properly for few weeks and since last week it stopped to pass authtoken through screens…

minaelhamy December 14, 2022

yes I understand the problem, I faced it before and had to make sure that the variable has to be returned again on the particular screen so there is no errors, probably a bug that you need to tell bravo about

Mykyta December 14, 2022

oh, good that I’m not the only one) what was your approach to return token again?

Cecilia June 15, 2023

Hi, I'm also facing this problem. What was your approach to that? I'll really appreciate it.

Wrote something in this thread and want it removed? Request removal

Still stuck?

Ask the community on Discord

This archive is read-only. New questions, office hours and product updates now happen in the Bravo Discord.

Join the Discord