@faire-auth/expo 1.0.4 → 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.cjs CHANGED
@@ -1,4 +1,5 @@
1
- //#region rolldown:runtime
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ // \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -15,20 +16,17 @@ var __copyProps = (to, from, except, desc) => {
15
16
  }
16
17
  return to;
17
18
  };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
19
20
  value: mod,
20
21
  enumerable: true
21
22
  }) : target, mod));
22
-
23
- //#endregion
24
23
  let expo_linking = require("expo-linking");
25
- expo_linking = __toESM(expo_linking);
24
+ expo_linking = __toESM(expo_linking, 1);
26
25
  let react_native = require("react-native");
27
26
  let expo_constants = require("expo-constants");
28
- expo_constants = __toESM(expo_constants);
27
+ expo_constants = __toESM(expo_constants, 1);
29
28
  let faire_auth = require("faire-auth");
30
-
31
- //#region src/client.ts
29
+ // src/client.ts
32
30
  function parseSetCookieHeader(header) {
33
31
  const cookieMap = /* @__PURE__ */ new Map();
34
32
  splitSetCookieHeader(header).forEach((cookie) => {
@@ -120,7 +118,23 @@ const expoClient = ({ storage, disableCache, scheme: rawScheme = expo_constants.
120
118
  id: "expo",
121
119
  getActions(_, $store) {
122
120
  store = $store;
123
- return { getCookie: () => {
121
+ return {
122
+ /**
123
+ * Get the stored cookie.
124
+ *
125
+ * You can use this to get the cookie stored in the device and use it in your fetch
126
+ * requests.
127
+ *
128
+ * @example
129
+ * ```ts
130
+ * const cookie = client.getCookie();
131
+ * fetch("https://api.example.com", {
132
+ * headers: {
133
+ * cookie,
134
+ * },
135
+ * });
136
+ */
137
+ getCookie: () => {
124
138
  return getCookie(storage.getItem(cookieName) || "{}");
125
139
  } };
126
140
  },
@@ -187,10 +201,7 @@ const expoClient = ({ storage, disableCache, scheme: rawScheme = expo_constants.
187
201
  }]
188
202
  };
189
203
  };
190
-
191
- //#endregion
192
- exports.__toESM = __toESM;
193
204
  exports.expoClient = expoClient;
194
205
  exports.getCookie = getCookie;
195
206
  exports.getSetCookie = getSetCookie;
196
- exports.parseSetCookieHeader = parseSetCookieHeader;
207
+ exports.parseSetCookieHeader = parseSetCookieHeader;
package/dist/client.d.cts CHANGED
@@ -1,8 +1,5 @@
1
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
2
- import { BetterFetchOption } from "@better-fetch/fetch";
3
1
  import { Store } from "faire-auth/types";
4
-
5
- //#region src/client.d.ts
2
+ import { BetterFetchOption } from "@better-fetch/fetch";
6
3
  interface CookieAttributes {
7
4
  value: string;
8
5
  expires?: Date;
@@ -13,7 +10,7 @@ interface CookieAttributes {
13
10
  httpOnly?: boolean;
14
11
  sameSite?: "Strict" | "Lax" | "None";
15
12
  }
16
- declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
13
+ export declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
17
14
  interface ExpoClientOptions {
18
15
  scheme?: string;
19
16
  storage: {
@@ -23,16 +20,11 @@ interface ExpoClientOptions {
23
20
  storagePrefix?: string;
24
21
  disableCache?: boolean;
25
22
  }
26
- declare function getSetCookie(header: string, prevCookie?: string): string;
27
- declare function getCookie(cookie: string): string;
28
- declare const expoClient: ({
29
- storage,
30
- disableCache,
31
- scheme: rawScheme,
32
- storagePrefix
33
- }: ExpoClientOptions) => {
23
+ export declare function getSetCookie(header: string, prevCookie?: string): string;
24
+ export declare function getCookie(cookie: string): string;
25
+ export declare const expoClient: ({ storage, disableCache, scheme: rawScheme, storagePrefix }: ExpoClientOptions) => {
34
26
  id: "expo";
35
- getActions(_: _better_fetch_fetch0.BetterFetch, $store: Store): {
27
+ getActions(_: import("@better-fetch/fetch").BetterFetch, $store: Store): {
36
28
  /**
37
29
  * Get the stored cookie.
38
30
  *
@@ -54,66 +46,69 @@ declare const expoClient: ({
54
46
  id: string;
55
47
  name: string;
56
48
  hooks: {
57
- onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): Promise<void>;
49
+ onSuccess(context: import("@better-fetch/fetch").SuccessContext<any>): Promise<void>;
58
50
  };
59
- init(url: string, options: {
60
- method?: string;
61
- redirect?: RequestRedirect;
62
- headers?: HeadersInit & (HeadersInit | {
63
- accept: "application/json" | "text/plain" | "application/octet-stream";
64
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
65
- authorization: "Bearer" | "Basic";
66
- });
51
+ init(url: string, options: ({
67
52
  cache?: RequestCache;
68
53
  credentials?: RequestCredentials;
69
54
  integrity?: string;
70
55
  keepalive?: boolean;
56
+ method?: string;
71
57
  mode?: RequestMode;
72
58
  priority?: RequestPriority;
59
+ redirect?: RequestRedirect;
73
60
  referrer?: string;
74
61
  referrerPolicy?: ReferrerPolicy;
75
62
  signal?: AbortSignal | null;
76
63
  window?: null;
77
- onRequest?: <T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void;
78
- onResponse?: (context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void;
79
- onSuccess?: (context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void;
80
- onError?: (context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void;
81
- onRetry?: (response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void;
64
+ } & {
65
+ onRequest?: <T extends Record<string, any>>(context: import("@better-fetch/fetch").RequestContext<T>) => Promise<import("@better-fetch/fetch").RequestContext | void> | import("@better-fetch/fetch").RequestContext | void;
66
+ onResponse?: (context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void;
67
+ onSuccess?: (context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void;
68
+ onError?: (context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void;
69
+ onRetry?: (response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void;
82
70
  hookOptions?: {
83
71
  cloneResponse?: boolean;
84
72
  };
85
73
  timeout?: number;
86
- customFetchImpl?: _better_fetch_fetch0.FetchEsque;
87
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[];
74
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque;
75
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[];
88
76
  baseURL?: string;
89
77
  throw?: boolean;
90
78
  auth?: {
91
- type: "Bearer";
92
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
93
- } | {
94
79
  type: "Basic";
95
80
  username: string | (() => string | undefined) | undefined;
96
81
  password: string | (() => string | undefined) | undefined;
82
+ } | {
83
+ type: "Bearer";
84
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
97
85
  } | {
98
86
  type: "Custom";
99
87
  prefix: string | (() => string | undefined) | undefined;
100
88
  value: string | (() => string | undefined) | undefined;
101
89
  };
90
+ headers?: {
91
+ [x: string]: string | undefined;
92
+ accept?: "application/json" | "application/octet-stream" | "text/plain" | (string & {});
93
+ "content-type"?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | (string & {});
94
+ authorization?: `Basic ${string}` | `Bearer ${string}` | (string & {});
95
+ } | {};
102
96
  body?: any;
103
97
  query?: any;
104
98
  params?: any;
105
99
  duplex?: "full" | "half";
106
100
  jsonParser?: (text: string) => Promise<any> | any;
107
- retry?: _better_fetch_fetch0.RetryOptions;
101
+ retry?: import("@better-fetch/fetch").RetryOptions;
108
102
  retryAttempt?: number;
109
- output?: _better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File;
110
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1;
103
+ method?: "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | (string & {});
104
+ output?: import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File;
105
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1;
111
106
  disableValidation?: boolean;
112
- } | undefined): Promise<{
107
+ signal?: AbortSignal | null;
108
+ } & Record<string, any>) | undefined): Promise<{
113
109
  url: string;
114
110
  options: BetterFetchOption;
115
111
  }>;
116
112
  }[];
117
113
  };
118
- //#endregion
119
- export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
114
+ export {};
package/dist/client.d.mts CHANGED
@@ -1,8 +1,5 @@
1
- import * as _better_fetch_fetch0 from "@better-fetch/fetch";
2
- import { BetterFetchOption } from "@better-fetch/fetch";
3
1
  import { Store } from "faire-auth/types";
4
-
5
- //#region src/client.d.ts
2
+ import { BetterFetchOption } from "@better-fetch/fetch";
6
3
  interface CookieAttributes {
7
4
  value: string;
8
5
  expires?: Date;
@@ -13,7 +10,7 @@ interface CookieAttributes {
13
10
  httpOnly?: boolean;
14
11
  sameSite?: "Strict" | "Lax" | "None";
15
12
  }
16
- declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
13
+ export declare function parseSetCookieHeader(header: string): Map<string, CookieAttributes>;
17
14
  interface ExpoClientOptions {
18
15
  scheme?: string;
19
16
  storage: {
@@ -23,16 +20,11 @@ interface ExpoClientOptions {
23
20
  storagePrefix?: string;
24
21
  disableCache?: boolean;
25
22
  }
26
- declare function getSetCookie(header: string, prevCookie?: string): string;
27
- declare function getCookie(cookie: string): string;
28
- declare const expoClient: ({
29
- storage,
30
- disableCache,
31
- scheme: rawScheme,
32
- storagePrefix
33
- }: ExpoClientOptions) => {
23
+ export declare function getSetCookie(header: string, prevCookie?: string): string;
24
+ export declare function getCookie(cookie: string): string;
25
+ export declare const expoClient: ({ storage, disableCache, scheme: rawScheme, storagePrefix }: ExpoClientOptions) => {
34
26
  id: "expo";
35
- getActions(_: _better_fetch_fetch0.BetterFetch, $store: Store): {
27
+ getActions(_: import("@better-fetch/fetch").BetterFetch, $store: Store): {
36
28
  /**
37
29
  * Get the stored cookie.
38
30
  *
@@ -54,66 +46,69 @@ declare const expoClient: ({
54
46
  id: string;
55
47
  name: string;
56
48
  hooks: {
57
- onSuccess(context: _better_fetch_fetch0.SuccessContext<any>): Promise<void>;
49
+ onSuccess(context: import("@better-fetch/fetch").SuccessContext<any>): Promise<void>;
58
50
  };
59
- init(url: string, options: {
60
- method?: string;
61
- redirect?: RequestRedirect;
62
- headers?: HeadersInit & (HeadersInit | {
63
- accept: "application/json" | "text/plain" | "application/octet-stream";
64
- "content-type": "application/json" | "text/plain" | "application/x-www-form-urlencoded" | "multipart/form-data" | "application/octet-stream";
65
- authorization: "Bearer" | "Basic";
66
- });
51
+ init(url: string, options: ({
67
52
  cache?: RequestCache;
68
53
  credentials?: RequestCredentials;
69
54
  integrity?: string;
70
55
  keepalive?: boolean;
56
+ method?: string;
71
57
  mode?: RequestMode;
72
58
  priority?: RequestPriority;
59
+ redirect?: RequestRedirect;
73
60
  referrer?: string;
74
61
  referrerPolicy?: ReferrerPolicy;
75
62
  signal?: AbortSignal | null;
76
63
  window?: null;
77
- onRequest?: <T extends Record<string, any>>(context: _better_fetch_fetch0.RequestContext<T>) => Promise<_better_fetch_fetch0.RequestContext | void> | _better_fetch_fetch0.RequestContext | void;
78
- onResponse?: (context: _better_fetch_fetch0.ResponseContext) => Promise<Response | void | _better_fetch_fetch0.ResponseContext> | Response | _better_fetch_fetch0.ResponseContext | void;
79
- onSuccess?: (context: _better_fetch_fetch0.SuccessContext<any>) => Promise<void> | void;
80
- onError?: (context: _better_fetch_fetch0.ErrorContext) => Promise<void> | void;
81
- onRetry?: (response: _better_fetch_fetch0.ResponseContext) => Promise<void> | void;
64
+ } & {
65
+ onRequest?: <T extends Record<string, any>>(context: import("@better-fetch/fetch").RequestContext<T>) => Promise<import("@better-fetch/fetch").RequestContext | void> | import("@better-fetch/fetch").RequestContext | void;
66
+ onResponse?: (context: import("@better-fetch/fetch").ResponseContext) => Promise<Response | void | import("@better-fetch/fetch").ResponseContext> | Response | import("@better-fetch/fetch").ResponseContext | void;
67
+ onSuccess?: (context: import("@better-fetch/fetch").SuccessContext<any>) => Promise<void> | void;
68
+ onError?: (context: import("@better-fetch/fetch").ErrorContext) => Promise<void> | void;
69
+ onRetry?: (response: import("@better-fetch/fetch").ResponseContext) => Promise<void> | void;
82
70
  hookOptions?: {
83
71
  cloneResponse?: boolean;
84
72
  };
85
73
  timeout?: number;
86
- customFetchImpl?: _better_fetch_fetch0.FetchEsque;
87
- plugins?: _better_fetch_fetch0.BetterFetchPlugin[];
74
+ customFetchImpl?: import("@better-fetch/fetch").FetchEsque;
75
+ plugins?: import("@better-fetch/fetch").BetterFetchPlugin[];
88
76
  baseURL?: string;
89
77
  throw?: boolean;
90
78
  auth?: {
91
- type: "Bearer";
92
- token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
93
- } | {
94
79
  type: "Basic";
95
80
  username: string | (() => string | undefined) | undefined;
96
81
  password: string | (() => string | undefined) | undefined;
82
+ } | {
83
+ type: "Bearer";
84
+ token: string | Promise<string | undefined> | (() => string | Promise<string | undefined> | undefined) | undefined;
97
85
  } | {
98
86
  type: "Custom";
99
87
  prefix: string | (() => string | undefined) | undefined;
100
88
  value: string | (() => string | undefined) | undefined;
101
89
  };
90
+ headers?: {
91
+ [x: string]: string | undefined;
92
+ accept?: "application/json" | "application/octet-stream" | "text/plain" | (string & {});
93
+ "content-type"?: "application/json" | "application/octet-stream" | "application/x-www-form-urlencoded" | "multipart/form-data" | "text/plain" | (string & {});
94
+ authorization?: `Basic ${string}` | `Bearer ${string}` | (string & {});
95
+ } | {};
102
96
  body?: any;
103
97
  query?: any;
104
98
  params?: any;
105
99
  duplex?: "full" | "half";
106
100
  jsonParser?: (text: string) => Promise<any> | any;
107
- retry?: _better_fetch_fetch0.RetryOptions;
101
+ retry?: import("@better-fetch/fetch").RetryOptions;
108
102
  retryAttempt?: number;
109
- output?: _better_fetch_fetch0.StandardSchemaV1 | typeof Blob | typeof File;
110
- errorSchema?: _better_fetch_fetch0.StandardSchemaV1;
103
+ method?: "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | (string & {});
104
+ output?: import("@better-fetch/fetch").StandardSchemaV1 | typeof Blob | typeof File;
105
+ errorSchema?: import("@better-fetch/fetch").StandardSchemaV1;
111
106
  disableValidation?: boolean;
112
- } | undefined): Promise<{
107
+ signal?: AbortSignal | null;
108
+ } & Record<string, any>) | undefined): Promise<{
113
109
  url: string;
114
110
  options: BetterFetchOption;
115
111
  }>;
116
112
  }[];
117
113
  };
118
- //#endregion
119
- export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
114
+ export {};
package/dist/client.mjs CHANGED
@@ -2,8 +2,7 @@ import * as Linking from "expo-linking";
2
2
  import { Platform } from "react-native";
3
3
  import Constants from "expo-constants";
4
4
  import { mergeHeaders } from "faire-auth";
5
-
6
- //#region src/client.ts
5
+ // src/client.ts
7
6
  function parseSetCookieHeader(header) {
8
7
  const cookieMap = /* @__PURE__ */ new Map();
9
8
  splitSetCookieHeader(header).forEach((cookie) => {
@@ -95,7 +94,23 @@ const expoClient = ({ storage, disableCache, scheme: rawScheme = Constants.expoC
95
94
  id: "expo",
96
95
  getActions(_, $store) {
97
96
  store = $store;
98
- return { getCookie: () => {
97
+ return {
98
+ /**
99
+ * Get the stored cookie.
100
+ *
101
+ * You can use this to get the cookie stored in the device and use it in your fetch
102
+ * requests.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const cookie = client.getCookie();
107
+ * fetch("https://api.example.com", {
108
+ * headers: {
109
+ * cookie,
110
+ * },
111
+ * });
112
+ */
113
+ getCookie: () => {
99
114
  return getCookie(storage.getItem(cookieName) || "{}");
100
115
  } };
101
116
  },
@@ -162,6 +177,4 @@ const expoClient = ({ storage, disableCache, scheme: rawScheme = Constants.expoC
162
177
  }]
163
178
  };
164
179
  };
165
-
166
- //#endregion
167
- export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
180
+ export { expoClient, getCookie, getSetCookie, parseSetCookieHeader };
package/dist/index.cjs CHANGED
@@ -1,7 +1,6 @@
1
- const require_client = require('./client.cjs');
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let faire_auth_plugins = require("faire-auth/plugins");
3
-
4
- //#region src/index.ts
3
+ // src/index.ts
5
4
  const expo = (options) => {
6
5
  return {
7
6
  id: "expo",
@@ -33,6 +32,4 @@ const expo = (options) => {
33
32
  }] }
34
33
  };
35
34
  };
36
-
37
- //#endregion
38
- exports.expo = expo;
35
+ exports.expo = expo;
package/dist/index.d.cts CHANGED
@@ -1,28 +1,21 @@
1
- import * as faire_auth0 from "faire-auth";
2
- import * as _faire_auth_core_types0 from "@faire-auth/core/types";
3
- import * as hono0 from "hono";
4
-
5
- //#region src/index.d.ts
6
- interface ExpoOptions {
1
+ export interface ExpoOptions {
7
2
  /**
8
3
  * Override origin header for expo API routes
9
4
  */
10
5
  overrideOrigin?: boolean;
11
6
  }
12
- declare const expo: (options?: ExpoOptions) => {
7
+ export declare const expo: (options?: ExpoOptions) => {
13
8
  id: "expo";
14
- init: (ctx: _faire_auth_core_types0.AuthContext<faire_auth0.ContextVars<any>, _faire_auth_core_types0.FaireAuthOptions<faire_auth0.ContextVars<any>>>) => {
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>>>) => {
15
10
  options: {
16
11
  trustedOrigins: string[];
17
12
  };
18
13
  };
19
- onRequest: (ctx: hono0.Context<faire_auth0.ContextVars<any>, any, {}>) => void;
14
+ onRequest: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => void;
20
15
  hooks: {
21
16
  after: {
22
- matcher: (ctx: hono0.Context<faire_auth0.ContextVars<any>, any, {}>) => boolean;
23
- handler: (_authOptions: _faire_auth_core_types0.FaireAuthOptions<any>) => (ctx: hono0.Context<faire_auth0.ContextVars<object>, string, {}>) => Promise<void>;
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>;
24
19
  }[];
25
20
  };
26
- };
27
- //#endregion
28
- export { ExpoOptions, expo };
21
+ };
package/dist/index.d.mts CHANGED
@@ -1,28 +1,21 @@
1
- import * as faire_auth0 from "faire-auth";
2
- import * as _faire_auth_core_types0 from "@faire-auth/core/types";
3
- import * as hono0 from "hono";
4
-
5
- //#region src/index.d.ts
6
- interface ExpoOptions {
1
+ export interface ExpoOptions {
7
2
  /**
8
3
  * Override origin header for expo API routes
9
4
  */
10
5
  overrideOrigin?: boolean;
11
6
  }
12
- declare const expo: (options?: ExpoOptions) => {
7
+ export declare const expo: (options?: ExpoOptions) => {
13
8
  id: "expo";
14
- init: (ctx: _faire_auth_core_types0.AuthContext<faire_auth0.ContextVars<any>, _faire_auth_core_types0.FaireAuthOptions<faire_auth0.ContextVars<any>>>) => {
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>>>) => {
15
10
  options: {
16
11
  trustedOrigins: string[];
17
12
  };
18
13
  };
19
- onRequest: (ctx: hono0.Context<faire_auth0.ContextVars<any>, any, {}>) => void;
14
+ onRequest: (ctx: import("hono").Context<import("faire-auth").ContextVars<any>, any, {}>) => void;
20
15
  hooks: {
21
16
  after: {
22
- matcher: (ctx: hono0.Context<faire_auth0.ContextVars<any>, any, {}>) => boolean;
23
- handler: (_authOptions: _faire_auth_core_types0.FaireAuthOptions<any>) => (ctx: hono0.Context<faire_auth0.ContextVars<object>, string, {}>) => Promise<void>;
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>;
24
19
  }[];
25
20
  };
26
- };
27
- //#endregion
28
- export { ExpoOptions, expo };
21
+ };
package/dist/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  import { createHook } from "faire-auth/plugins";
2
-
3
- //#region src/index.ts
2
+ // src/index.ts
4
3
  const expo = (options) => {
5
4
  return {
6
5
  id: "expo",
@@ -32,6 +31,4 @@ const expo = (options) => {
32
31
  }] }
33
32
  };
34
33
  };
35
-
36
- //#endregion
37
- export { expo };
34
+ export { expo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faire-auth/expo",
3
- "version": "1.0.4",
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",
@@ -47,17 +47,18 @@
47
47
  },
48
48
  "license": "MIT",
49
49
  "devDependencies": {
50
- "@better-fetch/fetch": "^1.1.18",
51
- "better-sqlite3": "^12.2.0",
50
+ "@better-fetch/fetch": "^1.3.3",
51
+ "better-sqlite3": "^12.11.1",
52
52
  "expo-constants": "~17.1.7",
53
53
  "expo-crypto": "^13.0.2",
54
54
  "expo-linking": "~7.1.7",
55
55
  "expo-secure-store": "~14.2.3",
56
56
  "expo-web-browser": "~14.2.0",
57
- "publint": "^0.3.15",
57
+ "hono": "^4.13.16",
58
+ "publint": "^0.3.25",
58
59
  "react-native": "^0.84.1",
59
- "tsdown": "^0.16.0",
60
- "faire-auth": "1.0.4"
60
+ "tsdown": "^0.23.7",
61
+ "faire-auth": "1.1.1"
61
62
  },
62
63
  "peerDependencies": {
63
64
  "expo-constants": ">=17.0.0",
@@ -65,19 +66,19 @@
65
66
  "expo-linking": ">=7.0.0",
66
67
  "expo-secure-store": ">=14.0.0",
67
68
  "expo-web-browser": ">=14.0.0",
68
- "@faire-auth/core": "1.0.4",
69
- "faire-auth": "1.0.4"
69
+ "hono": ">=4.3.6",
70
+ "@faire-auth/core": "1.1.1",
71
+ "faire-auth": "1.1.1"
70
72
  },
71
73
  "dependencies": {
72
- "@better-fetch/fetch": "^1.1.18",
73
- "zod": "4.1.4"
74
+ "@better-fetch/fetch": "^1.3.3"
74
75
  },
75
76
  "files": [
76
77
  "dist"
77
78
  ],
78
79
  "scripts": {
79
80
  "test": "vitest",
80
- "build": "tsdown",
81
+ "build": "tsc -b && tsdown",
81
82
  "dev": "tsdown --watch",
82
83
  "typecheck": "tsc --project tsconfig.json"
83
84
  }