UNPKG

@auth0/auth0-spa-js

Version:

Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE

11 lines (10 loc) 621 B
import { IsFederatedDomainOptions } from '@auth0/auth0-auth-js'; export type { IsFederatedDomainOptions }; /** * Checks whether an email domain is managed for enterprise SSO on the given Auth0 tenant. * Wraps the auth-js primitive to inject spa-js telemetry by default. * * @param auth0Domain - Tenant domain, e.g. 'tenant.auth0.com'. A leading 'https://' or 'http://' is stripped automatically. * @param emailDomain - The email domain to check, e.g. 'acme.com'. */ export declare function isFederatedDomain(auth0Domain: string, emailDomain: string, options?: IsFederatedDomainOptions): Promise<boolean>;