Validating and Refreshing Auth Tokens
Sometimes users login credentials can expire. This can happen for a variety of reasons so it is good to build an auth token validation mechanism.
We provide some endpoints for this.
Validating Auth Tokens
You can use the following to check whether a user access token is valid so that you can secure your own API.
curl --request POST \
--url 'https://auth-api.fractal.is/auth/v2/token/verify' \
--header 'content-type: application/json' \
--data '{
"clientId":"<CLIENT_ID>",
"token":"<BEARER_TOKEN>"
}
'
Refreshing Auth Tokens
Auth tokens expire after 20 hours. However, we will have refresh logic soon. For now, you can request a new token through the url flow.