@uninspired/auth-client 0.0.10 → 0.0.11
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +8 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +8 -4
- package/dist/types/index.d.ts +66 -50
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var{defineProperty:
|
|
1
|
+
var{defineProperty:u,getOwnPropertyNames:y,getOwnPropertyDescriptor:R}=Object,g=Object.prototype.hasOwnProperty;var a=new WeakMap,k=(e)=>{var t=a.get(e),r;if(t)return t;if(t=u({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function")y(e).map((n)=>!g.call(t,n)&&u(t,n,{get:()=>e[n],enumerable:!(r=R(e,n))||r.enumerable}));return a.set(e,t),t};var x=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0,configurable:!0,set:(n)=>t[r]=()=>n})};var S={};x(S,{makeUsBetterAuthClient:()=>A,makeRedirectIntent:()=>C,makePublicClient:()=>P,makeLoginUrl:()=>O,makeCheckoutUrl:()=>q,makeCheckoutClient:()=>d,makeAppClient:()=>b});module.exports=k(S);var m=require("hono/client"),P=(e,t)=>{return m.hc(e,t)};var h=require("hono/client"),b=(e,t)=>{return h.hc(e,{...t,fetch:(r,n)=>(t?.fetch??fetch)(r,{...n,credentials:"include",headers:{...n.headers,"Content-Type":"application/json"}})})};var o=require("better-auth/client/plugins"),f=require("better-auth/react"),A=(e)=>{return f.createAuthClient({baseURL:e,plugins:[o.customSessionClient(),o.magicLinkClient(),o.emailOTPClient(),o.passkeyClient()]})};var l=require("hono/client"),d=(e,t)=>{return l.hc(e,{...t,fetch:(r,n)=>(t?.fetch??fetch)(r,{...n,credentials:"include",headers:{...n.headers,"Content-Type":"application/json"}})})};function O(e,t){let r=new URL("/login",e);if(t)r.searchParams.set("intent",C(t));return r.toString()}function j(...e){}function q(e,t,r,n,s,p,c){j({priceId:t,productId:r,discountCode:n,loginUrl:s,pricingUrl:p,successUrl:c});let i=new URL("/auth/checkout",e);if(i.searchParams.set("priceId",t),i.searchParams.set("productId",r),n)i.searchParams.set("discountCode",n);if(s)i.searchParams.set("loginUrl",s);if(p)i.searchParams.set("pricingUrl",p);if(c)i.searchParams.set("successUrl",c);return i.toString()}function C(e){return JSON.stringify({type:"redirect",redirectUrl:e})}
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=46C77DB1E1E1C8EE64756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
3
|
+
"sources": ["../../src/clients/publicClient.ts", "../../src/clients/appClient.ts", "../../src/clients/authClient.ts", "../../src/clients/checkoutClient.ts", "../../src/utils/intent.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import
|
|
5
|
+
"import type { PublicRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type PublicClient = ReturnType<typeof hc<PublicRouter>>;\n\nexport const makePublicClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): PublicClient => {\n return hc<PublicRouter>(baseURL, options);\n};\n",
|
|
6
|
+
"import type { AppRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type AppClient = ReturnType<typeof hc<AppRouter>>;\n\nexport const makeAppClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): AppClient => {\n return hc<AppRouter>(baseURL, {\n ...options,\n fetch: (url: any, init: any) =>\n (options?.fetch ?? fetch)(url, {\n ...init,\n credentials: \"include\",\n headers: {\n ...init.headers,\n \"Content-Type\": \"application/json\",\n },\n }),\n });\n};\n",
|
|
7
|
+
"import {\n customSessionClient,\n magicLinkClient,\n emailOTPClient,\n passkeyClient,\n} from \"better-auth/client/plugins\";\nimport { createAuthClient } from \"better-auth/react\";\nimport type { Auth } from \"@us-accounts/api\";\n\nexport const makeUsBetterAuthClient = (baseURL: string) => {\n return createAuthClient({\n baseURL,\n plugins: [\n customSessionClient<Auth>(),\n magicLinkClient(),\n emailOTPClient(),\n passkeyClient(),\n ],\n });\n};\n",
|
|
8
|
+
"import type { CheckoutRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type CheckoutClient = ReturnType<typeof hc<CheckoutRouter>>;\n\nexport const makeCheckoutClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): CheckoutClient => {\n return hc<CheckoutRouter>(baseURL, {\n ...options,\n fetch: (url: any, init: any) =>\n (options?.fetch ?? fetch)(url, {\n ...init,\n credentials: \"include\",\n headers: {\n ...init.headers,\n \"Content-Type\": \"application/json\",\n },\n }),\n });\n};\n",
|
|
9
|
+
"import type { CheckoutSearch, RedirectIntent } from \"@us-accounts/utils\";\n\nexport function makeLoginUrl(apiUrl: string, redirectUrl?: string) {\n const url = new URL(\"/login\", apiUrl);\n if (redirectUrl) {\n url.searchParams.set(\"intent\", makeRedirectIntent(redirectUrl));\n }\n return url.toString();\n}\n\nfunction noop(...args: any[]) {\n // Do nothing\n}\n\nexport function makeCheckoutUrl(\n apiUrl: string,\n priceId: string,\n productId: string,\n discountCode?: string,\n loginUrl?: string,\n pricingUrl?: string,\n successUrl?: string,\n) {\n const obj = {\n priceId,\n productId,\n discountCode,\n loginUrl,\n pricingUrl,\n successUrl,\n } satisfies CheckoutSearch;\n noop(obj);\n\n const url = new URL(\"/auth/checkout\", apiUrl);\n url.searchParams.set(\"priceId\", priceId);\n url.searchParams.set(\"productId\", productId);\n if (discountCode) {\n url.searchParams.set(\"discountCode\", discountCode);\n }\n if (loginUrl) {\n url.searchParams.set(\"loginUrl\", loginUrl);\n }\n if (pricingUrl) {\n url.searchParams.set(\"pricingUrl\", pricingUrl);\n }\n if (successUrl) {\n url.searchParams.set(\"successUrl\", successUrl);\n }\n return url.toString();\n}\n\nexport function makeRedirectIntent(redirectUrl: string): string {\n const obj = {\n type: \"redirect\",\n redirectUrl,\n } satisfies RedirectIntent;\n\n return JSON.stringify(obj);\n}\n"
|
|
6
10
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
11
|
+
"mappings": "gpBAC8C,IAA9C,yBAIa,EAAmB,CAC9B,EACA,IACiB,CACjB,OAAO,KAAiB,EAAS,CAAO,GCRI,IAA9C,yBAIa,EAAgB,CAC3B,EACA,IACc,CACd,OAAO,KAAc,EAAS,IACzB,EACH,MAAO,CAAC,EAAU,KACf,GAAS,OAAS,OAAO,EAAK,IAC1B,EACH,YAAa,UACb,QAAS,IACJ,EAAK,QACR,eAAgB,kBAClB,CACF,CAAC,CACL,CAAC,GCfI,IALP,wCAMA,+BAGa,EAAyB,CAAC,IAAoB,CACzD,OAAO,mBAAiB,CACtB,UACA,QAAS,CACP,sBAA0B,EAC1B,kBAAgB,EAChB,iBAAe,EACf,gBAAc,CAChB,CACF,CAAC,GCjB2C,IAA9C,yBAIa,EAAqB,CAChC,EACA,IACmB,CACnB,OAAO,KAAmB,EAAS,IAC9B,EACH,MAAO,CAAC,EAAU,KACf,GAAS,OAAS,OAAO,EAAK,IAC1B,EACH,YAAa,UACb,QAAS,IACJ,EAAK,QACR,eAAgB,kBAClB,CACF,CAAC,CACL,CAAC,GClBI,SAAS,CAAY,CAAC,EAAgB,EAAsB,CACjE,IAAM,EAAM,IAAI,IAAI,SAAU,CAAM,EACpC,GAAI,EACF,EAAI,aAAa,IAAI,SAAU,EAAmB,CAAW,CAAC,EAEhE,OAAO,EAAI,SAAS,EAGtB,SAAS,CAAI,IAAI,EAAa,EAIvB,SAAS,CAAe,CAC7B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,CASA,EARY,CACV,UACA,YACA,eACA,WACA,aACA,YACF,CACQ,EAER,IAAM,EAAM,IAAI,IAAI,iBAAkB,CAAM,EAG5C,GAFA,EAAI,aAAa,IAAI,UAAW,CAAO,EACvC,EAAI,aAAa,IAAI,YAAa,CAAS,EACvC,EACF,EAAI,aAAa,IAAI,eAAgB,CAAY,EAEnD,GAAI,EACF,EAAI,aAAa,IAAI,WAAY,CAAQ,EAE3C,GAAI,EACF,EAAI,aAAa,IAAI,aAAc,CAAU,EAE/C,GAAI,EACF,EAAI,aAAa,IAAI,aAAc,CAAU,EAE/C,OAAO,EAAI,SAAS,EAGf,SAAS,CAAkB,CAAC,EAA6B,CAM9D,OAAO,KAAK,UALA,CACV,KAAM,WACN,aACF,CAEyB",
|
|
12
|
+
"debugId": "46C77DB1E1E1C8EE64756E2164756E21",
|
|
9
13
|
"names": []
|
|
10
14
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{customSessionClient as
|
|
1
|
+
import{hc as c}from"hono/client";var x=(t,e)=>{return c(t,e)};import{hc as u}from"hono/client";var A=(t,e)=>{return u(t,{...e,fetch:(r,n)=>(e?.fetch??fetch)(r,{...n,credentials:"include",headers:{...n.headers,"Content-Type":"application/json"}})})};import{customSessionClient as a,magicLinkClient as m,emailOTPClient as h,passkeyClient as f}from"better-auth/client/plugins";import{createAuthClient as l}from"better-auth/react";var q=(t)=>{return l({baseURL:t,plugins:[a(),m(),h(),f()]})};import{hc as C}from"hono/client";var L=(t,e)=>{return C(t,{...e,fetch:(r,n)=>(e?.fetch??fetch)(r,{...n,credentials:"include",headers:{...n.headers,"Content-Type":"application/json"}})})};function v(t,e){let r=new URL("/login",t);if(e)r.searchParams.set("intent",R(e));return r.toString()}function y(...t){}function z(t,e,r,n,i,s,p){y({priceId:e,productId:r,discountCode:n,loginUrl:i,pricingUrl:s,successUrl:p});let o=new URL("/auth/checkout",t);if(o.searchParams.set("priceId",e),o.searchParams.set("productId",r),n)o.searchParams.set("discountCode",n);if(i)o.searchParams.set("loginUrl",i);if(s)o.searchParams.set("pricingUrl",s);if(p)o.searchParams.set("successUrl",p);return o.toString()}function R(t){return JSON.stringify({type:"redirect",redirectUrl:t})}export{q as makeUsBetterAuthClient,R as makeRedirectIntent,x as makePublicClient,v as makeLoginUrl,z as makeCheckoutUrl,L as makeCheckoutClient,A as makeAppClient};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=52B7384BABEEEDC964756E2164756E21
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
3
|
+
"sources": ["../../src/clients/publicClient.ts", "../../src/clients/appClient.ts", "../../src/clients/authClient.ts", "../../src/clients/checkoutClient.ts", "../../src/utils/intent.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"import
|
|
5
|
+
"import type { PublicRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type PublicClient = ReturnType<typeof hc<PublicRouter>>;\n\nexport const makePublicClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): PublicClient => {\n return hc<PublicRouter>(baseURL, options);\n};\n",
|
|
6
|
+
"import type { AppRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type AppClient = ReturnType<typeof hc<AppRouter>>;\n\nexport const makeAppClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): AppClient => {\n return hc<AppRouter>(baseURL, {\n ...options,\n fetch: (url: any, init: any) =>\n (options?.fetch ?? fetch)(url, {\n ...init,\n credentials: \"include\",\n headers: {\n ...init.headers,\n \"Content-Type\": \"application/json\",\n },\n }),\n });\n};\n",
|
|
7
|
+
"import {\n customSessionClient,\n magicLinkClient,\n emailOTPClient,\n passkeyClient,\n} from \"better-auth/client/plugins\";\nimport { createAuthClient } from \"better-auth/react\";\nimport type { Auth } from \"@us-accounts/api\";\n\nexport const makeUsBetterAuthClient = (baseURL: string) => {\n return createAuthClient({\n baseURL,\n plugins: [\n customSessionClient<Auth>(),\n magicLinkClient(),\n emailOTPClient(),\n passkeyClient(),\n ],\n });\n};\n",
|
|
8
|
+
"import type { CheckoutRouter } from \"@us-accounts/api\";\nimport { hc, type ClientRequestOptions } from \"hono/client\";\n\nexport type CheckoutClient = ReturnType<typeof hc<CheckoutRouter>>;\n\nexport const makeCheckoutClient = (\n baseURL: string,\n options?: ClientRequestOptions,\n): CheckoutClient => {\n return hc<CheckoutRouter>(baseURL, {\n ...options,\n fetch: (url: any, init: any) =>\n (options?.fetch ?? fetch)(url, {\n ...init,\n credentials: \"include\",\n headers: {\n ...init.headers,\n \"Content-Type\": \"application/json\",\n },\n }),\n });\n};\n",
|
|
9
|
+
"import type { CheckoutSearch, RedirectIntent } from \"@us-accounts/utils\";\n\nexport function makeLoginUrl(apiUrl: string, redirectUrl?: string) {\n const url = new URL(\"/login\", apiUrl);\n if (redirectUrl) {\n url.searchParams.set(\"intent\", makeRedirectIntent(redirectUrl));\n }\n return url.toString();\n}\n\nfunction noop(...args: any[]) {\n // Do nothing\n}\n\nexport function makeCheckoutUrl(\n apiUrl: string,\n priceId: string,\n productId: string,\n discountCode?: string,\n loginUrl?: string,\n pricingUrl?: string,\n successUrl?: string,\n) {\n const obj = {\n priceId,\n productId,\n discountCode,\n loginUrl,\n pricingUrl,\n successUrl,\n } satisfies CheckoutSearch;\n noop(obj);\n\n const url = new URL(\"/auth/checkout\", apiUrl);\n url.searchParams.set(\"priceId\", priceId);\n url.searchParams.set(\"productId\", productId);\n if (discountCode) {\n url.searchParams.set(\"discountCode\", discountCode);\n }\n if (loginUrl) {\n url.searchParams.set(\"loginUrl\", loginUrl);\n }\n if (pricingUrl) {\n url.searchParams.set(\"pricingUrl\", pricingUrl);\n }\n if (successUrl) {\n url.searchParams.set(\"successUrl\", successUrl);\n }\n return url.toString();\n}\n\nexport function makeRedirectIntent(redirectUrl: string): string {\n const obj = {\n type: \"redirect\",\n redirectUrl,\n } satisfies RedirectIntent;\n\n return JSON.stringify(obj);\n}\n"
|
|
6
10
|
],
|
|
7
|
-
"mappings": "
|
|
8
|
-
"debugId": "
|
|
11
|
+
"mappings": "AACA,aAAS,oBAIF,IAAM,EAAmB,CAC9B,EACA,IACiB,CACjB,OAAO,EAAiB,EAAS,CAAO,GCR1C,aAAS,oBAIF,IAAM,EAAgB,CAC3B,EACA,IACc,CACd,OAAO,EAAc,EAAS,IACzB,EACH,MAAO,CAAC,EAAU,KACf,GAAS,OAAS,OAAO,EAAK,IAC1B,EACH,YAAa,UACb,QAAS,IACJ,EAAK,QACR,eAAgB,kBAClB,CACF,CAAC,CACL,CAAC,GCpBH,8BACE,qBACA,oBACA,mBACA,mCAEF,2BAAS,0BAGF,IAAM,EAAyB,CAAC,IAAoB,CACzD,OAAO,EAAiB,CACtB,UACA,QAAS,CACP,EAA0B,EAC1B,EAAgB,EAChB,EAAe,EACf,EAAc,CAChB,CACF,CAAC,GCjBH,aAAS,oBAIF,IAAM,EAAqB,CAChC,EACA,IACmB,CACnB,OAAO,EAAmB,EAAS,IAC9B,EACH,MAAO,CAAC,EAAU,KACf,GAAS,OAAS,OAAO,EAAK,IAC1B,EACH,YAAa,UACb,QAAS,IACJ,EAAK,QACR,eAAgB,kBAClB,CACF,CAAC,CACL,CAAC,GClBI,SAAS,CAAY,CAAC,EAAgB,EAAsB,CACjE,IAAM,EAAM,IAAI,IAAI,SAAU,CAAM,EACpC,GAAI,EACF,EAAI,aAAa,IAAI,SAAU,EAAmB,CAAW,CAAC,EAEhE,OAAO,EAAI,SAAS,EAGtB,SAAS,CAAI,IAAI,EAAa,EAIvB,SAAS,CAAe,CAC7B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,CASA,EARY,CACV,UACA,YACA,eACA,WACA,aACA,YACF,CACQ,EAER,IAAM,EAAM,IAAI,IAAI,iBAAkB,CAAM,EAG5C,GAFA,EAAI,aAAa,IAAI,UAAW,CAAO,EACvC,EAAI,aAAa,IAAI,YAAa,CAAS,EACvC,EACF,EAAI,aAAa,IAAI,eAAgB,CAAY,EAEnD,GAAI,EACF,EAAI,aAAa,IAAI,WAAY,CAAQ,EAE3C,GAAI,EACF,EAAI,aAAa,IAAI,aAAc,CAAU,EAE/C,GAAI,EACF,EAAI,aAAa,IAAI,aAAc,CAAU,EAE/C,OAAO,EAAI,SAAS,EAGf,SAAS,CAAkB,CAAC,EAA6B,CAM9D,OAAO,KAAK,UALA,CACV,KAAM,WACN,aACF,CAEyB",
|
|
12
|
+
"debugId": "52B7384BABEEEDC964756E2164756E21",
|
|
9
13
|
"names": []
|
|
10
14
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as hono_hono_base from 'hono/hono-base';
|
|
2
|
+
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
3
|
+
import { hc, ClientRequestOptions } from 'hono/client';
|
|
1
4
|
import * as nanostores from 'nanostores';
|
|
2
5
|
import * as inspector from 'inspector';
|
|
3
6
|
import * as _simplewebauthn_server from '@simplewebauthn/server';
|
|
@@ -5,9 +8,6 @@ import * as undici_types from 'undici-types';
|
|
|
5
8
|
import * as better_auth from 'better-auth';
|
|
6
9
|
import * as _better_fetch_fetch from '@better-fetch/fetch';
|
|
7
10
|
import * as better_auth_plugins_passkey from 'better-auth/plugins/passkey';
|
|
8
|
-
import * as hono_hono_base from 'hono/hono-base';
|
|
9
|
-
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
10
|
-
import { hc, ClientRequestOptions } from 'hono/client';
|
|
11
11
|
|
|
12
12
|
declare const checkoutRouter: hono_hono_base.HonoBase<{
|
|
13
13
|
Variables: {
|
|
@@ -169,6 +169,15 @@ declare const publicRouter: hono_hono_base.HonoBase<{
|
|
|
169
169
|
} & {
|
|
170
170
|
"/products/:productId": {
|
|
171
171
|
$get: {
|
|
172
|
+
input: {
|
|
173
|
+
param: {
|
|
174
|
+
productId: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
output: "Not found";
|
|
178
|
+
outputFormat: "text";
|
|
179
|
+
status: 404;
|
|
180
|
+
} | {
|
|
172
181
|
input: {
|
|
173
182
|
param: {
|
|
174
183
|
productId: string;
|
|
@@ -223,6 +232,12 @@ declare const publicRouter: hono_hono_base.HonoBase<{
|
|
|
223
232
|
}, "/">;
|
|
224
233
|
type PublicRouter = typeof publicRouter;
|
|
225
234
|
|
|
235
|
+
type PublicClient = ReturnType<typeof hc<PublicRouter>>;
|
|
236
|
+
declare const makePublicClient: (baseURL: string, options?: ClientRequestOptions) => PublicClient;
|
|
237
|
+
|
|
238
|
+
type AppClient = ReturnType<typeof hc<AppRouter>>;
|
|
239
|
+
declare const makeAppClient: (baseURL: string, options?: ClientRequestOptions) => AppClient;
|
|
240
|
+
|
|
226
241
|
declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
227
242
|
useListPasskeys: () => {
|
|
228
243
|
data: better_auth_plugins_passkey.Passkey[] | null;
|
|
@@ -239,8 +254,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
239
254
|
mode?: undici_types.RequestMode | undefined;
|
|
240
255
|
method?: string | undefined;
|
|
241
256
|
headers?: any;
|
|
242
|
-
keepalive?: boolean | undefined;
|
|
243
257
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
258
|
+
keepalive?: boolean | undefined;
|
|
244
259
|
integrity?: string | undefined;
|
|
245
260
|
signal?: (AbortSignal | null) | undefined;
|
|
246
261
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -310,8 +325,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
310
325
|
mode?: undici_types.RequestMode | undefined;
|
|
311
326
|
method?: string | undefined;
|
|
312
327
|
headers?: any;
|
|
313
|
-
keepalive?: boolean | undefined;
|
|
314
328
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
329
|
+
keepalive?: boolean | undefined;
|
|
315
330
|
integrity?: string | undefined;
|
|
316
331
|
signal?: (AbortSignal | null) | undefined;
|
|
317
332
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -389,8 +404,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
389
404
|
mode?: undici_types.RequestMode | undefined;
|
|
390
405
|
method?: string | undefined;
|
|
391
406
|
headers?: any;
|
|
392
|
-
keepalive?: boolean | undefined;
|
|
393
407
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
408
|
+
keepalive?: boolean | undefined;
|
|
394
409
|
integrity?: string | undefined;
|
|
395
410
|
signal?: (AbortSignal | null) | undefined;
|
|
396
411
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -456,8 +471,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
456
471
|
mode?: undici_types.RequestMode | undefined;
|
|
457
472
|
method?: string | undefined;
|
|
458
473
|
headers?: any;
|
|
459
|
-
keepalive?: boolean | undefined;
|
|
460
474
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
475
|
+
keepalive?: boolean | undefined;
|
|
461
476
|
integrity?: string | undefined;
|
|
462
477
|
signal?: (AbortSignal | null) | undefined;
|
|
463
478
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -543,8 +558,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
543
558
|
mode?: undici_types.RequestMode | undefined;
|
|
544
559
|
method?: string | undefined;
|
|
545
560
|
headers?: any;
|
|
546
|
-
keepalive?: boolean | undefined;
|
|
547
561
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
562
|
+
keepalive?: boolean | undefined;
|
|
548
563
|
integrity?: string | undefined;
|
|
549
564
|
signal?: (AbortSignal | null) | undefined;
|
|
550
565
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -617,8 +632,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
617
632
|
mode?: undici_types.RequestMode | undefined;
|
|
618
633
|
method?: string | undefined;
|
|
619
634
|
headers?: any;
|
|
620
|
-
keepalive?: boolean | undefined;
|
|
621
635
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
636
|
+
keepalive?: boolean | undefined;
|
|
622
637
|
integrity?: string | undefined;
|
|
623
638
|
signal?: (AbortSignal | null) | undefined;
|
|
624
639
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -680,8 +695,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
680
695
|
mode?: undici_types.RequestMode | undefined;
|
|
681
696
|
method?: string | undefined;
|
|
682
697
|
headers?: any;
|
|
683
|
-
keepalive?: boolean | undefined;
|
|
684
698
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
699
|
+
keepalive?: boolean | undefined;
|
|
685
700
|
integrity?: string | undefined;
|
|
686
701
|
signal?: (AbortSignal | null) | undefined;
|
|
687
702
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -747,8 +762,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
747
762
|
mode?: undici_types.RequestMode | undefined;
|
|
748
763
|
method?: string | undefined;
|
|
749
764
|
headers?: any;
|
|
750
|
-
keepalive?: boolean | undefined;
|
|
751
765
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
766
|
+
keepalive?: boolean | undefined;
|
|
752
767
|
integrity?: string | undefined;
|
|
753
768
|
signal?: (AbortSignal | null) | undefined;
|
|
754
769
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -812,8 +827,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
812
827
|
mode?: undici_types.RequestMode | undefined;
|
|
813
828
|
method?: string | undefined;
|
|
814
829
|
headers?: any;
|
|
815
|
-
keepalive?: boolean | undefined;
|
|
816
830
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
831
|
+
keepalive?: boolean | undefined;
|
|
817
832
|
integrity?: string | undefined;
|
|
818
833
|
signal?: (AbortSignal | null) | undefined;
|
|
819
834
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -876,8 +891,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
876
891
|
mode?: undici_types.RequestMode | undefined;
|
|
877
892
|
method?: string | undefined;
|
|
878
893
|
headers?: any;
|
|
879
|
-
keepalive?: boolean | undefined;
|
|
880
894
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
895
|
+
keepalive?: boolean | undefined;
|
|
881
896
|
integrity?: string | undefined;
|
|
882
897
|
signal?: (AbortSignal | null) | undefined;
|
|
883
898
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -936,8 +951,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
936
951
|
mode?: undici_types.RequestMode | undefined;
|
|
937
952
|
method?: string | undefined;
|
|
938
953
|
headers?: any;
|
|
939
|
-
keepalive?: boolean | undefined;
|
|
940
954
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
955
|
+
keepalive?: boolean | undefined;
|
|
941
956
|
integrity?: string | undefined;
|
|
942
957
|
signal?: (AbortSignal | null) | undefined;
|
|
943
958
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -999,8 +1014,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
999
1014
|
mode?: undici_types.RequestMode | undefined;
|
|
1000
1015
|
method?: string | undefined;
|
|
1001
1016
|
headers?: any;
|
|
1002
|
-
keepalive?: boolean | undefined;
|
|
1003
1017
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1018
|
+
keepalive?: boolean | undefined;
|
|
1004
1019
|
integrity?: string | undefined;
|
|
1005
1020
|
signal?: (AbortSignal | null) | undefined;
|
|
1006
1021
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1071,8 +1086,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1071
1086
|
mode?: undici_types.RequestMode | undefined;
|
|
1072
1087
|
method?: string | undefined;
|
|
1073
1088
|
headers?: any;
|
|
1074
|
-
keepalive?: boolean | undefined;
|
|
1075
1089
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1090
|
+
keepalive?: boolean | undefined;
|
|
1076
1091
|
integrity?: string | undefined;
|
|
1077
1092
|
signal?: (AbortSignal | null) | undefined;
|
|
1078
1093
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1129,8 +1144,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1129
1144
|
mode?: undici_types.RequestMode | undefined;
|
|
1130
1145
|
method?: string | undefined;
|
|
1131
1146
|
headers?: any;
|
|
1132
|
-
keepalive?: boolean | undefined;
|
|
1133
1147
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1148
|
+
keepalive?: boolean | undefined;
|
|
1134
1149
|
integrity?: string | undefined;
|
|
1135
1150
|
signal?: (AbortSignal | null) | undefined;
|
|
1136
1151
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1190,8 +1205,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1190
1205
|
mode?: undici_types.RequestMode | undefined;
|
|
1191
1206
|
method?: string | undefined;
|
|
1192
1207
|
headers?: any;
|
|
1193
|
-
keepalive?: boolean | undefined;
|
|
1194
1208
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1209
|
+
keepalive?: boolean | undefined;
|
|
1195
1210
|
integrity?: string | undefined;
|
|
1196
1211
|
signal?: (AbortSignal | null) | undefined;
|
|
1197
1212
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1255,8 +1270,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1255
1270
|
mode?: undici_types.RequestMode | undefined;
|
|
1256
1271
|
method?: string | undefined;
|
|
1257
1272
|
headers?: any;
|
|
1258
|
-
keepalive?: boolean | undefined;
|
|
1259
1273
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1274
|
+
keepalive?: boolean | undefined;
|
|
1260
1275
|
integrity?: string | undefined;
|
|
1261
1276
|
signal?: (AbortSignal | null) | undefined;
|
|
1262
1277
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1359,8 +1374,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1359
1374
|
mode?: undici_types.RequestMode | undefined;
|
|
1360
1375
|
method?: string | undefined;
|
|
1361
1376
|
headers?: any;
|
|
1362
|
-
keepalive?: boolean | undefined;
|
|
1363
1377
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1378
|
+
keepalive?: boolean | undefined;
|
|
1364
1379
|
integrity?: string | undefined;
|
|
1365
1380
|
signal?: (AbortSignal | null) | undefined;
|
|
1366
1381
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1418,8 +1433,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1418
1433
|
mode?: undici_types.RequestMode | undefined;
|
|
1419
1434
|
method?: string | undefined;
|
|
1420
1435
|
headers?: any;
|
|
1421
|
-
keepalive?: boolean | undefined;
|
|
1422
1436
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1437
|
+
keepalive?: boolean | undefined;
|
|
1423
1438
|
integrity?: string | undefined;
|
|
1424
1439
|
signal?: (AbortSignal | null) | undefined;
|
|
1425
1440
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1497,8 +1512,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1497
1512
|
mode?: undici_types.RequestMode | undefined;
|
|
1498
1513
|
method?: string | undefined;
|
|
1499
1514
|
headers?: any;
|
|
1500
|
-
keepalive?: boolean | undefined;
|
|
1501
1515
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1516
|
+
keepalive?: boolean | undefined;
|
|
1502
1517
|
integrity?: string | undefined;
|
|
1503
1518
|
signal?: (AbortSignal | null) | undefined;
|
|
1504
1519
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1560,8 +1575,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1560
1575
|
mode?: undici_types.RequestMode | undefined;
|
|
1561
1576
|
method?: string | undefined;
|
|
1562
1577
|
headers?: any;
|
|
1563
|
-
keepalive?: boolean | undefined;
|
|
1564
1578
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1579
|
+
keepalive?: boolean | undefined;
|
|
1565
1580
|
integrity?: string | undefined;
|
|
1566
1581
|
signal?: (AbortSignal | null) | undefined;
|
|
1567
1582
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1625,8 +1640,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1625
1640
|
mode?: undici_types.RequestMode | undefined;
|
|
1626
1641
|
method?: string | undefined;
|
|
1627
1642
|
headers?: any;
|
|
1628
|
-
keepalive?: boolean | undefined;
|
|
1629
1643
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1644
|
+
keepalive?: boolean | undefined;
|
|
1630
1645
|
integrity?: string | undefined;
|
|
1631
1646
|
signal?: (AbortSignal | null) | undefined;
|
|
1632
1647
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1701,8 +1716,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1701
1716
|
mode?: undici_types.RequestMode | undefined;
|
|
1702
1717
|
method?: string | undefined;
|
|
1703
1718
|
headers?: any;
|
|
1704
|
-
keepalive?: boolean | undefined;
|
|
1705
1719
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1720
|
+
keepalive?: boolean | undefined;
|
|
1706
1721
|
integrity?: string | undefined;
|
|
1707
1722
|
signal?: (AbortSignal | null) | undefined;
|
|
1708
1723
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1764,8 +1779,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1764
1779
|
mode?: undici_types.RequestMode | undefined;
|
|
1765
1780
|
method?: string | undefined;
|
|
1766
1781
|
headers?: any;
|
|
1767
|
-
keepalive?: boolean | undefined;
|
|
1768
1782
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1783
|
+
keepalive?: boolean | undefined;
|
|
1769
1784
|
integrity?: string | undefined;
|
|
1770
1785
|
signal?: (AbortSignal | null) | undefined;
|
|
1771
1786
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1827,8 +1842,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1827
1842
|
mode?: undici_types.RequestMode | undefined;
|
|
1828
1843
|
method?: string | undefined;
|
|
1829
1844
|
headers?: any;
|
|
1830
|
-
keepalive?: boolean | undefined;
|
|
1831
1845
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1846
|
+
keepalive?: boolean | undefined;
|
|
1832
1847
|
integrity?: string | undefined;
|
|
1833
1848
|
signal?: (AbortSignal | null) | undefined;
|
|
1834
1849
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1901,8 +1916,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1901
1916
|
mode?: undici_types.RequestMode | undefined;
|
|
1902
1917
|
method?: string | undefined;
|
|
1903
1918
|
headers?: any;
|
|
1904
|
-
keepalive?: boolean | undefined;
|
|
1905
1919
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1920
|
+
keepalive?: boolean | undefined;
|
|
1906
1921
|
integrity?: string | undefined;
|
|
1907
1922
|
signal?: (AbortSignal | null) | undefined;
|
|
1908
1923
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1968,8 +1983,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1968
1983
|
mode?: undici_types.RequestMode | undefined;
|
|
1969
1984
|
method?: string | undefined;
|
|
1970
1985
|
headers?: any;
|
|
1971
|
-
keepalive?: boolean | undefined;
|
|
1972
1986
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1987
|
+
keepalive?: boolean | undefined;
|
|
1973
1988
|
integrity?: string | undefined;
|
|
1974
1989
|
signal?: (AbortSignal | null) | undefined;
|
|
1975
1990
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2031,8 +2046,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2031
2046
|
mode?: undici_types.RequestMode | undefined;
|
|
2032
2047
|
method?: string | undefined;
|
|
2033
2048
|
headers?: any;
|
|
2034
|
-
keepalive?: boolean | undefined;
|
|
2035
2049
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2050
|
+
keepalive?: boolean | undefined;
|
|
2036
2051
|
integrity?: string | undefined;
|
|
2037
2052
|
signal?: (AbortSignal | null) | undefined;
|
|
2038
2053
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2095,8 +2110,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2095
2110
|
mode?: undici_types.RequestMode | undefined;
|
|
2096
2111
|
method?: string | undefined;
|
|
2097
2112
|
headers?: any;
|
|
2098
|
-
keepalive?: boolean | undefined;
|
|
2099
2113
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2114
|
+
keepalive?: boolean | undefined;
|
|
2100
2115
|
integrity?: string | undefined;
|
|
2101
2116
|
signal?: (AbortSignal | null) | undefined;
|
|
2102
2117
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2158,8 +2173,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2158
2173
|
mode?: undici_types.RequestMode | undefined;
|
|
2159
2174
|
method?: string | undefined;
|
|
2160
2175
|
headers?: any;
|
|
2161
|
-
keepalive?: boolean | undefined;
|
|
2162
2176
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2177
|
+
keepalive?: boolean | undefined;
|
|
2163
2178
|
integrity?: string | undefined;
|
|
2164
2179
|
signal?: (AbortSignal | null) | undefined;
|
|
2165
2180
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2219,8 +2234,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2219
2234
|
mode?: undici_types.RequestMode | undefined;
|
|
2220
2235
|
method?: string | undefined;
|
|
2221
2236
|
headers?: any;
|
|
2222
|
-
keepalive?: boolean | undefined;
|
|
2223
2237
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2238
|
+
keepalive?: boolean | undefined;
|
|
2224
2239
|
integrity?: string | undefined;
|
|
2225
2240
|
signal?: (AbortSignal | null) | undefined;
|
|
2226
2241
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2277,8 +2292,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2277
2292
|
mode?: undici_types.RequestMode | undefined;
|
|
2278
2293
|
method?: string | undefined;
|
|
2279
2294
|
headers?: any;
|
|
2280
|
-
keepalive?: boolean | undefined;
|
|
2281
2295
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2296
|
+
keepalive?: boolean | undefined;
|
|
2282
2297
|
integrity?: string | undefined;
|
|
2283
2298
|
signal?: (AbortSignal | null) | undefined;
|
|
2284
2299
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2335,8 +2350,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2335
2350
|
mode?: undici_types.RequestMode | undefined;
|
|
2336
2351
|
method?: string | undefined;
|
|
2337
2352
|
headers?: any;
|
|
2338
|
-
keepalive?: boolean | undefined;
|
|
2339
2353
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2354
|
+
keepalive?: boolean | undefined;
|
|
2340
2355
|
integrity?: string | undefined;
|
|
2341
2356
|
signal?: (AbortSignal | null) | undefined;
|
|
2342
2357
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2421,8 +2436,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2421
2436
|
mode?: undici_types.RequestMode | undefined;
|
|
2422
2437
|
method?: string | undefined;
|
|
2423
2438
|
headers?: any;
|
|
2424
|
-
keepalive?: boolean | undefined;
|
|
2425
2439
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2440
|
+
keepalive?: boolean | undefined;
|
|
2426
2441
|
integrity?: string | undefined;
|
|
2427
2442
|
signal?: (AbortSignal | null) | undefined;
|
|
2428
2443
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2485,8 +2500,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2485
2500
|
mode?: undici_types.RequestMode | undefined;
|
|
2486
2501
|
method?: string | undefined;
|
|
2487
2502
|
headers?: any;
|
|
2488
|
-
keepalive?: boolean | undefined;
|
|
2489
2503
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2504
|
+
keepalive?: boolean | undefined;
|
|
2490
2505
|
integrity?: string | undefined;
|
|
2491
2506
|
signal?: (AbortSignal | null) | undefined;
|
|
2492
2507
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2551,8 +2566,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2551
2566
|
mode?: undici_types.RequestMode | undefined;
|
|
2552
2567
|
method?: string | undefined;
|
|
2553
2568
|
headers?: any;
|
|
2554
|
-
keepalive?: boolean | undefined;
|
|
2555
2569
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2570
|
+
keepalive?: boolean | undefined;
|
|
2556
2571
|
integrity?: string | undefined;
|
|
2557
2572
|
signal?: (AbortSignal | null) | undefined;
|
|
2558
2573
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2614,8 +2629,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2614
2629
|
mode?: undici_types.RequestMode | undefined;
|
|
2615
2630
|
method?: string | undefined;
|
|
2616
2631
|
headers?: any;
|
|
2617
|
-
keepalive?: boolean | undefined;
|
|
2618
2632
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2633
|
+
keepalive?: boolean | undefined;
|
|
2619
2634
|
integrity?: string | undefined;
|
|
2620
2635
|
signal?: (AbortSignal | null) | undefined;
|
|
2621
2636
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2677,8 +2692,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2677
2692
|
mode?: undici_types.RequestMode | undefined;
|
|
2678
2693
|
method?: string | undefined;
|
|
2679
2694
|
headers?: any;
|
|
2680
|
-
keepalive?: boolean | undefined;
|
|
2681
2695
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2696
|
+
keepalive?: boolean | undefined;
|
|
2682
2697
|
integrity?: string | undefined;
|
|
2683
2698
|
signal?: (AbortSignal | null) | undefined;
|
|
2684
2699
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2745,8 +2760,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2745
2760
|
mode?: undici_types.RequestMode | undefined;
|
|
2746
2761
|
method?: string | undefined;
|
|
2747
2762
|
headers?: any;
|
|
2748
|
-
keepalive?: boolean | undefined;
|
|
2749
2763
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2764
|
+
keepalive?: boolean | undefined;
|
|
2750
2765
|
integrity?: string | undefined;
|
|
2751
2766
|
signal?: (AbortSignal | null) | undefined;
|
|
2752
2767
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2808,8 +2823,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2808
2823
|
mode?: undici_types.RequestMode | undefined;
|
|
2809
2824
|
method?: string | undefined;
|
|
2810
2825
|
headers?: any;
|
|
2811
|
-
keepalive?: boolean | undefined;
|
|
2812
2826
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2827
|
+
keepalive?: boolean | undefined;
|
|
2813
2828
|
integrity?: string | undefined;
|
|
2814
2829
|
signal?: (AbortSignal | null) | undefined;
|
|
2815
2830
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2898,8 +2913,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2898
2913
|
mode?: undici_types.RequestMode | undefined;
|
|
2899
2914
|
method?: string | undefined;
|
|
2900
2915
|
headers?: any;
|
|
2901
|
-
keepalive?: boolean | undefined;
|
|
2902
2916
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2917
|
+
keepalive?: boolean | undefined;
|
|
2903
2918
|
integrity?: string | undefined;
|
|
2904
2919
|
signal?: (AbortSignal | null) | undefined;
|
|
2905
2920
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2960,8 +2975,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2960
2975
|
mode?: undici_types.RequestMode | undefined;
|
|
2961
2976
|
method?: string | undefined;
|
|
2962
2977
|
headers?: any;
|
|
2963
|
-
keepalive?: boolean | undefined;
|
|
2964
2978
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2979
|
+
keepalive?: boolean | undefined;
|
|
2965
2980
|
integrity?: string | undefined;
|
|
2966
2981
|
signal?: (AbortSignal | null) | undefined;
|
|
2967
2982
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -3025,8 +3040,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3025
3040
|
mode?: undici_types.RequestMode | undefined;
|
|
3026
3041
|
method?: string | undefined;
|
|
3027
3042
|
headers?: any;
|
|
3028
|
-
keepalive?: boolean | undefined;
|
|
3029
3043
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
3044
|
+
keepalive?: boolean | undefined;
|
|
3030
3045
|
integrity?: string | undefined;
|
|
3031
3046
|
signal?: (AbortSignal | null) | undefined;
|
|
3032
3047
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -3396,12 +3411,13 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3396
3411
|
USER_ALREADY_HAS_PASSWORD: string;
|
|
3397
3412
|
};
|
|
3398
3413
|
};
|
|
3414
|
+
|
|
3399
3415
|
type CheckoutClient = ReturnType<typeof hc<CheckoutRouter>>;
|
|
3400
3416
|
declare const makeCheckoutClient: (baseURL: string, options?: ClientRequestOptions) => CheckoutClient;
|
|
3401
|
-
type AppClient = ReturnType<typeof hc<AppRouter>>;
|
|
3402
|
-
declare const makeAppClient: (baseURL: string, options?: ClientRequestOptions) => AppClient;
|
|
3403
|
-
type PublicClient = ReturnType<typeof hc<PublicRouter>>;
|
|
3404
|
-
declare const makePublicClient: (baseURL: string, options?: ClientRequestOptions) => PublicClient;
|
|
3405
3417
|
|
|
3406
|
-
|
|
3418
|
+
declare function makeLoginUrl(apiUrl: string, redirectUrl?: string): string;
|
|
3419
|
+
declare function makeCheckoutUrl(apiUrl: string, priceId: string, productId: string, discountCode?: string, loginUrl?: string, pricingUrl?: string, successUrl?: string): string;
|
|
3420
|
+
declare function makeRedirectIntent(redirectUrl: string): string;
|
|
3421
|
+
|
|
3422
|
+
export { makeAppClient, makeCheckoutClient, makeCheckoutUrl, makeLoginUrl, makePublicClient, makeRedirectIntent, makeUsBetterAuthClient };
|
|
3407
3423
|
export type { AppClient, CheckoutClient, PublicClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uninspired/auth-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "Auth client for Uninspired Studio Products",
|
|
5
5
|
"author": "Chris Kolb <chris@uninspired.studio>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"types": "dist/types/index.d.ts",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build:api": "bun run --filter \"@us-accounts/api\" build:exports",
|
|
17
16
|
"build": "bun run scripts/build.ts"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
20
19
|
"@types/bun": "latest",
|
|
21
20
|
"@us-accounts/api": "workspace:*",
|
|
21
|
+
"@us-accounts/utils": "workspace:*",
|
|
22
22
|
"rollup": "^4.52.5",
|
|
23
23
|
"rollup-plugin-dts": "^6.2.3",
|
|
24
24
|
"rollup-plugin-typescript": "^1.0.1",
|