forked from clerk/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
52 lines (48 loc) · 1.39 KB
/
Copy pathtypes.ts
File metadata and controls
52 lines (48 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
export type ClerkSetupOptions = {
/*
* The publishable key for your Clerk dev instance.
* If not provided, the library will look for the key in the following environment variables:
* - NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
* - VITE_CLERK_PUBLISHABLE_KEY
* - CLERK_PUBLISHABLE_KEY
* - REACT_APP_CLERK_PUBLISHABLE_KEY
* - EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY
*/
publishableKey?: string;
/*
* The frontend API URL for your Clerk dev instance, without the protocol.
* If provided, it overrides the Frontend API URL parsed from the publishable key.
* Example: 'relieved-chamois-66.clerk.accounts.dev'
*/
frontendApiUrl?: string;
/*
* Enable debug mode.
*/
debug?: boolean;
};
export type ClerkSetupReturn = {
CLERK_FAPI?: string;
CLERK_TESTING_TOKEN?: string;
};
export type SetupClerkTestingTokenOptions = {
/*
* The frontend API URL for your Clerk dev instance, without the protocol.
* If provided, it overrides the Frontend API URL parsed from the publishable key.
* Example: 'relieved-chamois-66.clerk.accounts.dev'
*/
frontendApiUrl?: string;
};
export type ClerkSignInParams =
| {
strategy: 'password';
password: string;
identifier: string;
}
| {
strategy: 'phone_code' | 'email_code';
identifier: string;
};
export type SignInHelperParams = {
signInParams: ClerkSignInParams;
windowObject?: Window;
};