SsoButtonGroup
Usage
import { SsoButtonGroup } from '@rw3iss/auth-client/preact/atoms';
<SsoButtonGroup redirectUrl={`${window.location.origin}/auth/callback`} organizationId={currentOrgId} onError={(err) => console.error(err)}/>Props
| Name | Type | Description |
|---|---|---|
redirectUrl | string | (required) |
providers | SsoProviderName[] | Which providers to render, in order. Default: all four. |
allowedAuthMethods | string[] | If set, only providers whose names appear here render. Plus ‘password’ is filtered out (it’s a no-op for an SSO group). Wire from `useAppPolicy().policy.allowed_auth_methods` so the group respects per-app policy automatically. / |
client | AuthClient | |
organizationId | string | |
inviteCode | string | |
onError | (err: Error) => void | |
className | string |