@faire-auth/expo 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.cts +1 -1
- package/dist/client.d.mts +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/package.json +5 -5
package/dist/client.d.cts
CHANGED
|
@@ -23,7 +23,7 @@ interface ExpoClientOptions {
|
|
|
23
23
|
export declare function getSetCookie(header: string, prevCookie?: string): string;
|
|
24
24
|
export declare function getCookie(cookie: string): string;
|
|
25
25
|
export declare const expoClient: ({ storage, disableCache, scheme: rawScheme, storagePrefix }: ExpoClientOptions) => {
|
|
26
|
-
id:
|
|
26
|
+
id: "expo";
|
|
27
27
|
getActions(_: import("@better-fetch/fetch").BetterFetch, $store: Store): {
|
|
28
28
|
/**
|
|
29
29
|
* Get the stored cookie.
|
package/dist/client.d.mts
CHANGED
|
@@ -23,7 +23,7 @@ interface ExpoClientOptions {
|
|
|
23
23
|
export declare function getSetCookie(header: string, prevCookie?: string): string;
|
|
24
24
|
export declare function getCookie(cookie: string): string;
|
|
25
25
|
export declare const expoClient: ({ storage, disableCache, scheme: rawScheme, storagePrefix }: ExpoClientOptions) => {
|
|
26
|
-
id:
|
|
26
|
+
id: "expo";
|
|
27
27
|
getActions(_: import("@better-fetch/fetch").BetterFetch, $store: Store): {
|
|
28
28
|
/**
|
|
29
29
|
* Get the stored cookie.
|
package/dist/index.d.cts
CHANGED
|
@@ -5,17 +5,17 @@ export interface ExpoOptions {
|
|
|
5
5
|
overrideOrigin?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const expo: (options?: ExpoOptions) => {
|
|
8
|
-
id:
|
|
9
|
-
init: (ctx: any) => {
|
|
8
|
+
id: "expo";
|
|
9
|
+
init: (ctx: import("@faire-auth/core/types").AuthContext<import("faire-auth").ContextVars<any>, import("@faire-auth/core/types").FaireAuthOptions<import("faire-auth").ContextVars<any>>>) => {
|
|
10
10
|
options: {
|
|
11
11
|
trustedOrigins: string[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
onRequest: (ctx: any) => void;
|
|
14
|
+
onRequest: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => void;
|
|
15
15
|
hooks: {
|
|
16
16
|
after: {
|
|
17
|
-
matcher: (ctx: any) =>
|
|
18
|
-
handler: (_authOptions: any) => (ctx:
|
|
17
|
+
matcher: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => boolean;
|
|
18
|
+
handler: (_authOptions: import("@faire-auth/core/types").FaireAuthOptions<any>) => (ctx: import("hono").Context<import("faire-auth").ContextVars<object>, string, {}>) => Promise<void>;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -5,17 +5,17 @@ export interface ExpoOptions {
|
|
|
5
5
|
overrideOrigin?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare const expo: (options?: ExpoOptions) => {
|
|
8
|
-
id:
|
|
9
|
-
init: (ctx: any) => {
|
|
8
|
+
id: "expo";
|
|
9
|
+
init: (ctx: import("@faire-auth/core/types").AuthContext<import("faire-auth").ContextVars<any>, import("@faire-auth/core/types").FaireAuthOptions<import("faire-auth").ContextVars<any>>>) => {
|
|
10
10
|
options: {
|
|
11
11
|
trustedOrigins: string[];
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
onRequest: (ctx: any) => void;
|
|
14
|
+
onRequest: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => void;
|
|
15
15
|
hooks: {
|
|
16
16
|
after: {
|
|
17
|
-
matcher: (ctx: any) =>
|
|
18
|
-
handler: (_authOptions: any) => (ctx:
|
|
17
|
+
matcher: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => boolean;
|
|
18
|
+
handler: (_authOptions: import("@faire-auth/core/types").FaireAuthOptions<any>) => (ctx: import("hono").Context<import("faire-auth").ContextVars<object>, string, {}>) => Promise<void>;
|
|
19
19
|
}[];
|
|
20
20
|
};
|
|
21
21
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faire-auth/expo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Faire Auth integration for Expo and React Native applications.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"publint": "^0.3.25",
|
|
59
59
|
"react-native": "^0.84.1",
|
|
60
60
|
"tsdown": "^0.23.7",
|
|
61
|
-
"faire-auth": "1.1.
|
|
61
|
+
"faire-auth": "1.1.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"expo-constants": ">=17.0.0",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"expo-secure-store": ">=14.0.0",
|
|
68
68
|
"expo-web-browser": ">=14.0.0",
|
|
69
69
|
"hono": ">=4.3.6",
|
|
70
|
-
"@faire-auth/core": "1.1.
|
|
71
|
-
"faire-auth": "1.1.
|
|
70
|
+
"@faire-auth/core": "1.1.1",
|
|
71
|
+
"faire-auth": "1.1.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@better-fetch/fetch": "^1.3.3"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
],
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest",
|
|
81
|
-
"build": "tsdown",
|
|
81
|
+
"build": "tsc -b && tsdown",
|
|
82
82
|
"dev": "tsdown --watch",
|
|
83
83
|
"typecheck": "tsc --project tsconfig.json"
|
|
84
84
|
}
|