Refresh Token
Obtaining a New JWT Token Using a Refresh Token
When you send a POST request to https://api.instantuploader.com/signin with your email and password included in the JSON payload, you will receive a JSON response containing an "idToken" field, which is a JWT token that can be used for authentication, as well as a "refreshToken" that can be used to obtain new JWT tokens in the future.
To obtain a new JWT token using a refresh token, simply send a POST request to https://api.instantuploader.com/token with the refreshToken in the request body. This will return a JSON response containing a new JWT token that you can use for authenticated requests to the InstantUploader API, as well as a new refreshToken that can be used again to obtain additional JWT tokens.
Example:
POST /token HTTP/1.1
Host: api.instantuploader.com
Content-Type: application/json
{
"refreshToken": "<your_refresh_token>"
}
Remember to store your refresh token securely, as it can be used to obtain new JWT tokens in the future without needing to enter user's email and password again.
Last updated