Skip to main content
← Data, API & Backend
Data, API & Backend Solved July 29, 2022 · 2 replies

Issue with PUT/user

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

I have made an endpoint on Xano that edits user details, and I'm using it to update user info while new users are onboarding.
I'm experiencing a weird issue with token authentication.

**Premise
**My Sign up works correctly and I've defined the generated token as "authtoken".
My Sign in works only on test mode from the Bravo studio endpoint collection. If I try to Sign in from the mobile app, it works when the action button is set to open another screen but it gives an error if I set it to "Set Access Token".

Now, my endpoint works perfectly on Xano, it allows to input some fields I need to edit about the user, doesn't require any field, it only requires an auth token since is an authenticated request.
On the Bravo collection looks like this:

  1. Headers: Authorization = Bearer ${authtoken}.

image 1 (3).png

  1. Test value: authtoken = ++a certain token I take from Xano when I need to test the endpoint from there+++
    (I also tried to change authtoken with "_authorization" still not working

errors I get:
ERROR_CODE_UNAUTHORIZED
Unsupported input

or I get

Duplicate record detected. Please check your input and try again

image 1 (2).png

2 replies

Fred August 25, 2022

it works, it wasn't working just because I didn't setup the initial page on the App workflow

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