I have a weweb app which goes through the JWT Auth flow.
On some point in the flow the client gets a authToken from Xano but when I make a request to change the password ( which is a authenticated endpoint ) I get a 401 back.
If I then test the auth token with the debugger in Xano it works.
So far I tested providing it as "Authorization"-header with the Bearer Format so {"Authorization":"Bearer ey..........."} , as query param ?authtoken=xxx.yyy.zzz and also with the X-Xano-Authorization and X-Xano-Authorization-Only headers.
For some reason I cant make it work. I always get the response
{
"code": "ERROR_CODE_UNAUTHORIZED",
"message": "Unauthorized - Authentication Required",
"payload": null
}
In the request history I can see that the authToken is properly provided.
I tested this all in Postman so it can't be a problem with weweb I guess? Whats wrong with my request? Its such a simple one.