X-OTAS-USER-TOKEN header. On success it returns the full user profile associated with the token. This is useful for verifying that a stored token is still valid and for resolving the current user’s identity without re-authenticating.
The JWT is read exclusively from the
X-OTAS-USER-TOKEN request header. No request body is required or expected.Request
Method:POSTURL:
http://localhost:8000/api/user/v1/authenticate/Authentication:
X-OTAS-USER-TOKEN header
Headers
Signed JWT returned by
/api/user/v1/login/ or /api/user/v1/create/.Response
1 on success, 0 on failure.user_authenticated on success.Example
Error responses
status_description | HTTP status | Cause |
|---|---|---|
missing_token | 400 | The X-OTAS-USER-TOKEN header was not present in the request. |
invalid_token | 401 | The token is malformed, expired, or does not correspond to a known user. |