Last updated 11 months ago
Revokes the refresh token
OK
const response = await fetch('https://auth.passage.id/v1/apps/{app_id}/tokens', { method: 'DELETE', headers: {}, }); const data = await response.json();
Creates and returns a new auth token and a new refresh token
App ID
Refresh token
Created
const response = await fetch('https://auth.passage.id/v1/apps/{app_id}/tokens', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "refresh_token": "text" }), }); const data = await response.json();
{ "auth_result": { "auth_token": "text", "redirect_url": "text", "refresh_token": "text" } }