get__token
GET /token
List User Tokens
Get all refresh tokens for the authenticated user
TypeScript Client Library
public getTokens = async (): Promise<{ success: boolean; tokens: any[] }> => {
return this.makeRequest<{ success: boolean; tokens: any[] }>('token', 'GET', null);
};Code Samples
# You can also use wget
curl -X GET https://backend.flashback.tech/token \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'GET https://backend.flashback.tech/token HTTP/1.1
Host: localhost:3000
Accept: application/jsonconst headers = {
'Accept':'application/json',
'Authorization':'Bearer {access-token}'
};
fetch('https://backend.flashback.tech/token',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});Example responses
200 Response
{
"success": true,
"tokens": [
{}
]
}Responses
Status
Meaning
Description
Schema
Response Schema
Status Code 200
Name
Type
Required
Restrictions
Description
» success
boolean
false
none
none
» tokens
[object]
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?