Skip to content

Commit

Permalink
feat: implements email-passwordless provider (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfrg authored Jan 23, 2025
1 parent f2db1c4 commit 9bd3996
Show file tree
Hide file tree
Showing 4 changed files with 845 additions and 201 deletions.
7 changes: 4 additions & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"dependencies": {
"@gnolang/gno-js-client": "1.3.2",
"@gnolang/tm2-js-client": "1.2.4",
"@web3auth/base": "^8.12.4",
"@web3auth/base-provider": "^8.12.4",
"@web3auth/no-modal": "^8.12.4",
"@web3auth/auth-adapter": "^9.5.3",
"@web3auth/base": "^9.5.3",
"@web3auth/base-provider": "^9.5.3",
"@web3auth/no-modal": "^9.5.3",
"@web3auth/openlogin-adapter": "^8.12.4"
},
"devDependencies": {
Expand Down
10 changes: 8 additions & 2 deletions packages/sdk/src/core/types/config.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ interface SocialBaseConfigure {
storageKey?: 'session' | 'local';
}

export interface SocialExtraLoginOptions {
login_hint?: string;
domain?: string;
}

export interface SocialGoogleConfigure extends SocialBaseConfigure {
authClientId: string;
googleClientId: string;
Expand All @@ -28,14 +33,15 @@ export interface SocialTwitterConfigure extends SocialBaseConfigure {
domain: string;
}

export interface SocialCustomConfigure extends SocialBaseConfigure {
export interface SocialEmailPasswordlessConfigure extends SocialBaseConfigure {
authClientId: string;
verifier: string;
domain: string;
email: string;
}

export enum SocialType {
GOOGLE = 'GOOGLE',
TWITTER = 'TWITTER',
EMAIL = 'EMAIL',
EMAIL = 'EMAIL_PASSWORDLESS',
}
Loading

0 comments on commit 9bd3996

Please sign in to comment.