Summary
This hook provides a way for clients to prompt the user to authenticate with MFA via the Dynamic UI. It supports both the legacycreateMfaToken flow and the recommended requestedScopes flow for elevated access tokens.
The hook needs to be initialized within a child of DynamicContextProvider.
Parameters
| Property | Type | Description |
|---|---|---|
requestedScopes | TokenScope[] | Scopes to request an elevated access token for (recommended) |
createMfaToken | boolean | @deprecated — Create a single-use MFA token. Use requestedScopes instead. |