post__user_refresh
POST /user/refresh
Refresh User Token
Refresh JWT access token
TypeScript Client Library
public userRefresh = async (refreshToken: string): Promise<RefreshTokenResponse | RefreshTokenErrorResponse> => {
return this.makeRequest<RefreshTokenResponse | RefreshTokenErrorResponse>(
'user/refresh',
'POST',
{ refresh_token: refreshToken }
);
};Code Samples
# You can also use wget
curl -X POST https://backend.flashback.tech/user/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST https://backend.flashback.tech/user/refresh HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: application/jsonconst inputBody = '{\n "refreshToken": "string"\n}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/user/refresh',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Body parameter
Parameters
Name
In
Type
Required
Description
body
body
object
true
none
» refreshToken
body
string
true
none
Example responses
200 Response
Responses
Status
Meaning
Description
Schema
Response Schema
Status Code 200
Name
Type
Required
Restrictions
Description
» success
boolean
false
none
none
» accessToken
string
false
none
none
» refreshToken
string
false
none
none
» expiresAt
integer
false
none
none
To perform this operation, you must be authenticated by means of one of the following methods: BearerAuth
Last updated
Was this helpful?