TypeScript
const options = {method: 'GET'}; fetch('http://localhost:8000/api/v1/providers', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "success": true, "data": { "emailPassword": true, "github": true, "google": true, "cognito": true, "microsoft": true, "genericOAuth": [ { "providerId": "<string>", "name": "<string>" } ] }, "meta": { "requestId": "<string>", "timestamp": "<string>" } }
Returns which OAuth authentication providers are enabled (GitHub, Google, Cognito, Microsoft) and whether email/password auth is available
Available authentication providers
true
Show child attributes
Was this page helpful?