@@ -7,35 +7,34 @@ description: "Web3Auth PnP Flutter SDK - Using Custom Authentication | Documenta
77
88import TabItem from " @theme/TabItem" ;
99import Tabs from " @theme/Tabs" ;
10+ import GrowthPlanNote from " @site/src/common/docs/_growth_plan_note.mdx" ;
1011
11- To use custom authentication (Using Social providers or Login providers like Auth0, AWS Cognito, Firebase etc. or even your own custom JWT login) you
12- can add the configuration to the ` loginConfig ` parameter of the ` LoginParams ` object during the initialization.
12+ To use custom authentication (Using Social providers or Login providers like Auth0, AWS Cognito,
13+ Firebase etc. or even your own custom JWT login) you can add the configuration to the ` loginConfig `
14+ parameter of the ` LoginParams ` object during the initialization.
1315
14- The ` loginConfig ` parameter is a key value map. The key should be one of the ` TypeOfLogin ` in its string form, and the value should be a
15- ` LoginConfigItem ` struct.
16+ The ` loginConfig ` parameter is a key value map. The key should be one of the ` TypeOfLogin ` in its
17+ string form, and the value should be a ` LoginConfigItem ` struct.
1618
17- To use custom authentication, first you'll need to configure your own verifier in the Web3Auth Dashboard in Custom Authentication section.
19+ To use custom authentication, first you'll need to configure your own verifier in the Web3Auth
20+ Dashboard in Custom Authentication section.
1821
1922:::tip Create Custom Verifier
2023
21- Check out how to create a ** [ Custom Verifier] ( /auth-provider-setup/verifiers ) ** on the Web3Auth Dashboard.
24+ Check out how to create a ** [ Custom Verifier] ( /auth-provider-setup/verifiers ) ** on the Web3Auth
25+ Dashboard.
2226
2327:::
2428
2529:::info using dapp share
2630
2731- dApp Share is only returned for the Custom verifiers.
28- - Also, 2FA should be enabled for the account using it. Use ` mfaLevel = MFALevel.MANDATORY ` in the ` LoginParams ` during login. See
29- ** [ MFA] ( /sdk/pnp/flutter/mfa ) ** for more details.
32+ - Also, 2FA should be enabled for the account using it. Use ` mfaLevel = MFALevel.MANDATORY ` in the
33+ ` LoginParams ` during login. See ** [ MFA] ( /sdk/pnp/flutter/mfa ) ** for more details.
3034
3135:::
3236
33- :::note
34-
35- This is a paid feature and the minimum [ pricing plan] ( https://web3auth.io/pricing.html ) to use this SDK in a production environment is the ** Growth
36- Plan** . You can use this feature in the development environment for free.
37-
38- :::
37+ <GrowthPlanNote />
3938
4039Then, specify the details of your verifier in the ` LoginConfigItem ` struct as follows:
4140
@@ -312,8 +311,9 @@ final Web3AuthResponse response = await Web3AuthFlutter.login(
312311
313312## ` ExtraLoginOptions ` for special login methods
314313
315- Additional to the ` LoginConfig ` you can pass extra options to the ` login ` function to configure the login flow for cases requiring additional info for
316- enabling login. The ` ExtraLoginOptions ` accepts the following parameters:
314+ Additional to the ` LoginConfig ` you can pass extra options to the ` login ` function to configure the
315+ login flow for cases requiring additional info for enabling login. The ` ExtraLoginOptions ` accepts
316+ the following parameters:
317317
318318<Tabs
319319 defaultValue = " table"
@@ -432,8 +432,9 @@ class ExtraLoginOptions {
432432
433433### Using Auth0 Login
434434
435- Auth0 has a special login flow, called the SPA flow. This flow requires a ` client_id ` and ` domain ` to be passed, and Web3Auth will get the JWT
436- ` id_token ` from Auth0 directly. You can pass these configurations in the ` ExtraLoginOptions ` object in the ` login ` function.
435+ Auth0 has a special login flow, called the SPA flow. This flow requires a ` client_id ` and ` domain `
436+ to be passed, and Web3Auth will get the JWT ` id_token ` from Auth0 directly. You can pass these
437+ configurations in the ` ExtraLoginOptions ` object in the ` login ` function.
437438
438439``` dart
439440Future<void> initWeb3Auth() async {
@@ -487,8 +488,8 @@ final Web3AuthResponse response = await Web3AuthFlutter.login(
487488
488489### Custom JWT Login
489490
490- If you're using any other provider like Firebase, AWS Cognito or deploying your own Custom JWT server, you need to put the jwt token into the
491- ` id_token ` parameter of the ` ExtraLoginOptions ` .
491+ If you're using any other provider like Firebase, AWS Cognito or deploying your own Custom JWT
492+ server, you need to put the jwt token into the ` id_token ` parameter of the ` ExtraLoginOptions ` .
492493
493494``` dart
494495Future<void> initWeb3Auth() async {
@@ -540,8 +541,9 @@ final Web3AuthResponse response = await Web3AuthFlutter.login(
540541
541542### Email Passwordless
542543
543- To use the ` EMAIL_PASSWORDLESS ` login, you need to put the email into the ` login_hint ` parameter of the ` ExtraLoginOptions ` . By default, the login
544- flow will be ` code ` flow, if you want to use the ` link ` flow, you need to put ` flow_type ` into the ` additionalParams ` parameter of the
544+ To use the ` EMAIL_PASSWORDLESS ` login, you need to put the email into the ` login_hint ` parameter of
545+ the ` ExtraLoginOptions ` . By default, the login flow will be ` code ` flow, if you want to use the
546+ ` link ` flow, you need to put ` flow_type ` into the ` additionalParams ` parameter of the
545547` ExtraLoginOptions ` .
546548
547549``` dart
0 commit comments