Skip to content

Commit 82e8a97

Browse files
committed
feat: Updated IWeb3AuthCoreOptions with initialAuthenticationMode property. Also added authorized and authorizing for connector events.
1 parent 95fba50 commit 82e8a97

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/no-modal/src/base/connector/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export const CONNECTOR_EVENTS = {
1515
CONNECTORS_UPDATED: "connectors_updated",
1616
MFA_ENABLED: "mfa_enabled",
1717
REHYDRATION_ERROR: "rehydration_error",
18+
AUTHORIZED: "authorized",
19+
AUTHORIZING: "authorizing",
1820
} as const;
1921

2022
export const CONNECTOR_CATEGORY = {

packages/no-modal/src/base/core/IWeb3Auth.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export interface UIConfig extends WhiteLabelData {
6262
uxMode?: UX_MODE_TYPE;
6363
}
6464

65+
export type InitialAuthenticationModeType = "connect-only" | "connect-and-sign";
66+
6567
export interface IWeb3AuthCoreOptions {
6668
/**
6769
* Client id for web3auth.
@@ -178,6 +180,12 @@ export interface IWeb3AuthCoreOptions {
178180
* MFA level for the auth connector
179181
*/
180182
mfaLevel?: MfaLevelType;
183+
184+
/**
185+
* Initial authentication mode for the auth connector.
186+
* @defaultValue "connect-only"
187+
*/
188+
initialAuthenticationMode?: InitialAuthenticationModeType;
181189
}
182190

183191
export type LoginParamMap = {

0 commit comments

Comments
 (0)