-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into mpc-core-kit-3.4.0
- Loading branch information
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import TabItem from "@theme/TabItem"; | ||
import Tabs from "@theme/Tabs"; | ||
|
||
#### `manageMFA()` | ||
|
||
You can redirect users to the Web3Auth Account Dashboard to manage their MFA settings by calling the | ||
`manageMFA()` function. This method ensures that identity details are injected into the dashboard | ||
internally for custom verifier-based dApps. In order to see what's present on the account dashboard, | ||
please refer to the [Account Dashboard](/features/account-dashboard). | ||
|
||
```javascript | ||
await web3auth.manageMFA(); | ||
``` | ||
|
||
#### Interface | ||
|
||
```typescript | ||
manageMFA<T>(loginParams?: T): Promise<void>; | ||
``` | ||
|
||
- **`loginParams`** (optional): Optional parameters to include during the MFA management process. | ||
- **Returns**: A `Promise<void>` indicating successful redirection to the Account Dashboard. | ||
|
||
:::tip | ||
|
||
If MFA is not already enabled, the `manageMFA()` method will throw an error. Ensure you use | ||
`enableMFA()` before calling `manageMFA()`. | ||
|
||
If your dApp uses default verifiers, users can directly log in to the Account Dashboard to manage | ||
MFA. For custom verifier-based dApps, the `manageMFA()` method must be used. | ||
|
||
::: |