Skip to content

Commit 9bd3996

Browse files
authored
feat: implements email-passwordless provider (#24)
1 parent f2db1c4 commit 9bd3996

File tree

4 files changed

+845
-201
lines changed

4 files changed

+845
-201
lines changed

packages/sdk/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
"dependencies": {
3838
"@gnolang/gno-js-client": "1.3.2",
3939
"@gnolang/tm2-js-client": "1.2.4",
40-
"@web3auth/base": "^8.12.4",
41-
"@web3auth/base-provider": "^8.12.4",
42-
"@web3auth/no-modal": "^8.12.4",
40+
"@web3auth/auth-adapter": "^9.5.3",
41+
"@web3auth/base": "^9.5.3",
42+
"@web3auth/base-provider": "^9.5.3",
43+
"@web3auth/no-modal": "^9.5.3",
4344
"@web3auth/openlogin-adapter": "^8.12.4"
4445
},
4546
"devDependencies": {

packages/sdk/src/core/types/config.types.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ interface SocialBaseConfigure {
1616
storageKey?: 'session' | 'local';
1717
}
1818

19+
export interface SocialExtraLoginOptions {
20+
login_hint?: string;
21+
domain?: string;
22+
}
23+
1924
export interface SocialGoogleConfigure extends SocialBaseConfigure {
2025
authClientId: string;
2126
googleClientId: string;
@@ -28,14 +33,15 @@ export interface SocialTwitterConfigure extends SocialBaseConfigure {
2833
domain: string;
2934
}
3035

31-
export interface SocialCustomConfigure extends SocialBaseConfigure {
36+
export interface SocialEmailPasswordlessConfigure extends SocialBaseConfigure {
3237
authClientId: string;
3338
verifier: string;
3439
domain: string;
40+
email: string;
3541
}
3642

3743
export enum SocialType {
3844
GOOGLE = 'GOOGLE',
3945
TWITTER = 'TWITTER',
40-
EMAIL = 'EMAIL',
46+
EMAIL = 'EMAIL_PASSWORDLESS',
4147
}

0 commit comments

Comments
 (0)