Im trying to setup user token authentication and I keep getting an Invalid or Expired token error:
Step 1: Call /auth-login workflow, where there is an action to log the user in.
That returns the following payload:
{
"status": "success",
"response": {
"role": [
"Admin"
],
"device": "174xx",
"token": "bus|17426xxx|1743028xxx",
"user_id": "174268xxx",
"expires": 31536000
}
}
Then im passing that token value in the API call as the following header:
“Authorization”: “Bearer {token}”
and its not authenticating me no matter what. Does anyone know why this might be happeneing?
1 Like
The Auth call is returning a valid token for Admin role on a Device, a but autorization is being failed, need to be invistigated.
Can you give me the documentation of the platform for which APIs you are integratign ,
Some time the token need to be encoded with Secret keys or other things.
Same problem here. following the steps of As a User | Bubble Docs results in this error :
{ "error_class": "Unauthorized", "args": { "code": "XXXXXXXXXX" }, "message": null, "translation": "You must authenticate to call this method" }
Not sure what you mean. I am implementing this API on a mobile device im developing and I want to authenticate the user from there. I couldn’t get it to work so I tried in postman, and even that didnt work. All im doing is calling /auth-login from my bubble.io app which is a backend workflow. It “logs the user in” and returns the payload, then I just added the extra keys “Device” and “Role”
Bump on this. Dont want the ticket to get closed for inactivity