You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`clientId`| The unique identifier for your application. Obtain this by registering your dapp in the [Web3Auth Dashboard](https://dashboard.web3auth.io)|
15
+
|`clientId`| The unique identifier for your application. Obtain this by registering your dapp in the [Embedded Wallets dashboard](https://dashboard.web3auth.io)|
16
16
|`network`| The Web3Auth Network to be used. |
17
17
|`buildEnv`| This parameter will be used to change the build environment of auth sdk, mainly for testing purposes. default is `production`. |
18
18
|`redirectUrl`| The URL where users will be redirected after login. |
19
19
|`uxMode`| Two uxModes supported are:- `'popup'`: In this uxMode, a popup will be shown to user for login. Use `'redirect'`: In this uxMode, user will be redirected to a new window tab for login. Use of `'redirect'` mode is recommended in browsers where popups might get blocked. |
20
-
|`replaceUrlOnRedirect`| replaceUrlOnRedirect removes the params from the redirected url after login |
21
-
|`originData`| originData is used to verify the origin of dapp by iframe. You don't have to pass originData explicitly if you have registered your dapp at [developer dashboard](https://dashboard.web3auth.io). originData contains a signature of dapp's origin url which is generated using project's secret. |
20
+
|`replaceUrlOnRedirect`| replaceUrlOnRedirect removes the params from the redirected URL after login |
21
+
|`originData`| originData is used to verify the origin of dapp by iframe. You don't have to pass originData explicitly if you have registered your dapp at [developer dashboard](https://dashboard.web3auth.io). originData contains a signature of dapp's origin URL which is generated using project's secret. |
22
22
|`loginConfig`| loginConfig enables you to pass your own login verifiers configuration for various loginProviders. loginConfig is key value map where each key should be a valid loginProvider and value should be custom configuration for that loginProvider. You can deploy your own verifiers from [developer dashboard](https://dashboard.web3auth.io) to use here. |
23
23
|`whiteLabel`| options for whitelabling default auth modal screens. |
24
-
|`storageServerUrl`| Specify a custom storage server url|
24
+
|`storageServerUrl`| Specify a custom storage server URL|
25
25
|`storageKey`| setting to "local" will persist social login session across browser tabs. |
26
26
|`sessionTime`| This is the sessionTime for the login session |
27
27
|`mfaSettings`| This parameter will be used to enable mfa factors and set priority on UI listing. List of factors available `deviceShareFactor`\|`backUpShareFactor`\|`socialBackupFactor`\|`passwordFactor`\|`passkeysFactor`\|`authenticatorFactor`|
Copy file name to clipboardExpand all lines: embedded-wallets/sdk/_common/_auth-login-settings.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,9 +15,9 @@ import Tabs from "@theme/Tabs";
15
15
|`loginProvider`| Sets the OAuth login method to be used. You can use any of the valid loginProvider from the supported list.<br /><br /> The list of available options: `google`, `facebook`, `reddit`, `discord`, `twitch`, `apple`, `line`, `github`, `kakao`, `linkedin`, `twitter`, `weibo`, `wechat`, `email_passwordless`, `sms_passwordless`, `jwt`|
16
16
|`mfaLevel?`| You can set the `mfaLevel` to customize when mfa screen should be shown to user. It currently accepts 4 values: <ul><li> **`'default'`** Setting mfa level to `default` will present mfa screen to user on every third login. </li><li> **`'optional'`** Setting mfa level to `default` will present mfa screen to user on every login but user can skip it. </li><li> **`'mandatory'`** Setting mfa level to `mandatory` will make it mandatory for user to setup mfa after login. </li><li> **`'none'`** Setting mfa level to `none` will make the user skip the mfa setup screen</li></ul> |
17
17
|`extraLoginOptions?`| This can be used to pass standard oauth login options to loginProvider. For ex: you will have to pass `login_hint` as user's email or phone number and `domain` as your app domain in `extraLoginOptions` while using `email_passwordless` or `sms_passwordless` loginProvider. It accepts `ExtraLoginOptions` as a value. |
18
-
|`dappShare?`| Custom logins can get a dApp share returned to them post successful login. This is useful if the dapps want to use this share to allow users to login seamlessly. `dappShare` is a 24 word seed phrase. It accepts `string` as a value. |
19
-
|`curve?`| This curve will be used to determine the public key encoded in the jwt token which returned in `getUserInfo` function after user login. You can use that public key from jwt token as a unique user identifier in your backend. <ul><li>`'secp256k1'`: secp256k1 based pub key is added as a wallet public key in jwt token to use.</li><li>`'ed25519'`: ed25519 based pub key is added as a wallet public key in jwt token to use.</li></ul> Note: This parameter won't change format of private key returned by auth. Private key returned by auth is always `secp256k1`. It accepts `SUPPORTED_KEY_CURVES_TYPE` as a value. |
20
-
|`appState?`| Any custom state you wish to pass along. This will be returned to you post redirect. Use this to store data that you want to be available to the dApp after login. It accepts `string` as a value. |
18
+
|`dappShare?`| Custom logins can get a dapp share returned to them post successful login. This is useful if the dapps want to use this share to allow users to login seamlessly. `dappShare` is a 24 word seed phrase. It accepts `string` as a value. |
19
+
|`curve?`| This curve will be used to determine the public key encoded in the JWT token which returned in `getUserInfo` function after user login. You can use that public key from JWT token as a unique user identifier in your backend. <ul><li>`'secp256k1'`: secp256k1 based pub key is added as a wallet public key in JWT token to use.</li><li>`'ed25519'`: ed25519 based pub key is added as a wallet public key in JWT token to use.</li></ul> Note: This parameter won't change format of private key returned by auth. Private key returned by auth is always `secp256k1`. It accepts `SUPPORTED_KEY_CURVES_TYPE` as a value. |
20
+
|`appState?`| Any custom state you wish to pass along. This will be returned to you post redirect. Use this to store data that you want to be available to the dapp after login. It accepts `string` as a value. |
21
21
|`redirectUrl?`| App's URL where user will be redirected after login. Register this URL in the [developer dashboard](https://dashboard.web3auth.io), else initialization will give error. It accepts `string` as a value. |
0 commit comments