Storing Authentication Token

Hi all,

I have created a second authentication table to allow users to generate tokens for to get data from my application via API calls.

The endpoint for creating tokens is simple:

1-2. a new record is created, which stores the user who submitted the request

  1. an authentication token is created

  2. the record I created earlier is updated to include the authentication token

The problem is, when I try sending a request from outside Xano to an endpoint that is secured by this authentication, it doesn't accept the token.

Testing I've done so far:

  • Calling an endpoint secured by this authentication from Xano, using an authToken provided by the Xano testing screen: Success

  • Calling an endpoint secured by this authentication from HTTPie, using an authToken from the Token DB: Fail

  • Calling an endpoint secured by this authentication from HTTPie, using an authToken from the Xano testing screen*: Success

Any idea why the testing authToken would work but not the actual one?

Thanks

1 reply