Creates a FaableAuthClient bound to a Faable Auth tenant.
This is the recommended entry point for app code. The returned client begins initializing its session in the background as soon as it's created, so you can start subscribing to events or triggering sign-ins right away.
Tenant settings. domain and clientId are required.
domain
clientId
import { createClient } from '@faable/auth-js'export const auth = createClient({ domain: '<faableauth_domain>', clientId: '<client_id>', redirectUri: window.location.origin}) Copy
import { createClient } from '@faable/auth-js'export const auth = createClient({ domain: '<faableauth_domain>', clientId: '<client_id>', redirectUri: window.location.origin})
Creates a FaableAuthClient bound to a Faable Auth tenant.
This is the recommended entry point for app code. The returned client begins initializing its session in the background as soon as it's created, so you can start subscribing to events or triggering sign-ins right away.