Skip to content

Commit 43a9318

Browse files
Add more types
1 parent 7493b3f commit 43a9318

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/types/sdk.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export const OPENLOGIN_NETWORK = {
1919
CYAN: "cyan",
2020
} as const;
2121

22+
export const SUPPORTED_KEY_CURVES = {
23+
SECP256K1: "secp256k1",
24+
ED25519: "ed25519",
25+
};
26+
2227
export const LOGIN_PROVIDER = {
2328
GOOGLE: "google",
2429
FACEBOOK: "facebook",
@@ -38,6 +43,21 @@ export const LOGIN_PROVIDER = {
3843
JWT: "jwt",
3944
} as const;
4045

41-
export type { ALLOWED_INTERACTIONS_TYPE, LOGIN_PROVIDER_TYPE, OPENLOGIN_NETWORK_TYPE, SUPPORTED_KEY_CURVES_TYPE } from "@toruslabs/openlogin";
46+
const MFA_LEVELS = {
47+
DEFAULT: "default",
48+
OPTIONAL: "optional",
49+
MANDATORY: "mandatory",
50+
NONE: "none",
51+
};
52+
53+
export type {
54+
ALLOWED_INTERACTIONS_TYPE,
55+
LOGIN_PROVIDER_TYPE,
56+
OPENLOGIN_NETWORK_TYPE,
57+
SUPPORTED_KEY_CURVES_TYPE,
58+
MfaLevelType,
59+
LoginParams,
60+
OpenloginUserInfo,
61+
} from "@toruslabs/openlogin";
4262
export type { ExtraLoginOptions } from "@toruslabs/openlogin-utils";
4363
export type { WhiteLabelData, TypeOfLogin } from "@toruslabs/openlogin-jrpc";

0 commit comments

Comments
 (0)