Implementing User Verification
Authentication flow
Setting up user verification
2
Generate an authentication token on your server
const response = await fetch("https://accounts.releasedhub.com/auth/api/token", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer SHARED_SECRET" // Your shared secret
},
body: JSON.stringify({
account_id: "ACCOUNT_ID", // Your Released Account ID
user_email: "CURRENT_USER_EMAIL" // Email of the current authenticated user
}),
});
const json = await response.json();
console.log(json);Rotating your shared secret
Need Help?
Last updated
Was this helpful?