Protected endpoints require a Web3Auth ID token for the Numpay app in the Authorization header:
Web3Auth issues an ID token that the client sends to the Numpay API. Web3Auth issues an ID token that the client sends to the Numpay API.

Getting a token

In the browser, after a Web3Auth login:

How the server verifies it

The identity claim is the verified phone number for SMS logins or the email address for email logins. The server tells them apart by the presence of @.

Lifetime

Tokens are tied to the Web3Auth session, which lasts up to one day. After it expires, the API returns 401 and the client must log in again.

Errors