@uninspired/auth-client 0.0.10 → 0.0.12
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 +84 -51
- 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:g}=Object,R=Object.prototype.hasOwnProperty;var a=new WeakMap,k=(e)=>{var t=a.get(e),n;if(t)return t;if(t=u({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function")y(e).map((r)=>!R.call(t,r)&&u(t,r,{get:()=>e[r],enumerable:!(n=g(e,r))||n.enumerable}));return a.set(e,t),t};var x=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0,configurable:!0,set:(r)=>t[n]=()=>r})};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:(n,r)=>(t?.fetch??fetch)(n,{...r,credentials:"include",headers:{...r.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:(n,r)=>(t?.fetch??fetch)(n,{...r,credentials:"include",headers:{...r.headers,"Content-Type":"application/json"}})})};function O(e,t,n){let r=new URL("/login",e);if(t)r.searchParams.set("intent",C(t,n));return r.toString()}function j(...e){}function q(e,t,n,r,s,p,c){j({priceId:t,productId:n,discountCode:r,loginUrl:s,pricingUrl:p,successUrl:c});let i=new URL("/auth/checkout",e);if(i.searchParams.set("priceId",t),i.searchParams.set("productId",n),r)i.searchParams.set("discountCode",r);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,t){return JSON.stringify({type:"redirect",redirectUrl:e,appName:t})}
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=D2A8D8299A3497FE64756E2164756E21
|
|
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(\n apiUrl: string,\n redirectUrl?: string,\n appName?: string,\n) {\n const url = new URL(\"/login\", apiUrl);\n if (redirectUrl) {\n url.searchParams.set(\"intent\", makeRedirectIntent(redirectUrl, appName));\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(\n redirectUrl: string,\n appName?: string,\n): string {\n const obj = {\n type: \"redirect\",\n redirectUrl,\n appName,\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,CAC1B,EACA,EACA,EACA,CACA,IAAM,EAAM,IAAI,IAAI,SAAU,CAAM,EACpC,GAAI,EACF,EAAI,aAAa,IAAI,SAAU,EAAmB,EAAa,CAAO,CAAC,EAEzE,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,CAChC,EACA,EACQ,CAOR,OAAO,KAAK,UANA,CACV,KAAM,WACN,cACA,SACF,CAEyB",
|
|
12
|
+
"debugId": "D2A8D8299A3497FE64756E2164756E21",
|
|
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=(e,t)=>{return c(e,t)};import{hc as u}from"hono/client";var A=(e,t)=>{return u(e,{...t,fetch:(n,r)=>(t?.fetch??fetch)(n,{...r,credentials:"include",headers:{...r.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=(e)=>{return l({baseURL:e,plugins:[a(),m(),h(),f()]})};import{hc as C}from"hono/client";var L=(e,t)=>{return C(e,{...t,fetch:(n,r)=>(t?.fetch??fetch)(n,{...r,credentials:"include",headers:{...r.headers,"Content-Type":"application/json"}})})};function v(e,t,n){let r=new URL("/login",e);if(t)r.searchParams.set("intent",g(t,n));return r.toString()}function y(...e){}function z(e,t,n,r,i,s,p){y({priceId:t,productId:n,discountCode:r,loginUrl:i,pricingUrl:s,successUrl:p});let o=new URL("/auth/checkout",e);if(o.searchParams.set("priceId",t),o.searchParams.set("productId",n),r)o.searchParams.set("discountCode",r);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 g(e,t){return JSON.stringify({type:"redirect",redirectUrl:e,appName:t})}export{q as makeUsBetterAuthClient,g as makeRedirectIntent,x as makePublicClient,v as makeLoginUrl,z as makeCheckoutUrl,L as makeCheckoutClient,A as makeAppClient};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
3
|
+
//# debugId=F9376091D0570D8C64756E2164756E21
|
|
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(\n apiUrl: string,\n redirectUrl?: string,\n appName?: string,\n) {\n const url = new URL(\"/login\", apiUrl);\n if (redirectUrl) {\n url.searchParams.set(\"intent\", makeRedirectIntent(redirectUrl, appName));\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(\n redirectUrl: string,\n appName?: string,\n): string {\n const obj = {\n type: \"redirect\",\n redirectUrl,\n appName,\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,CAC1B,EACA,EACA,EACA,CACA,IAAM,EAAM,IAAI,IAAI,SAAU,CAAM,EACpC,GAAI,EACF,EAAI,aAAa,IAAI,SAAU,EAAmB,EAAa,CAAO,CAAC,EAEzE,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,CAChC,EACA,EACQ,CAOR,OAAO,KAAK,UANA,CACV,KAAM,WACN,cACA,SACF,CAEyB",
|
|
12
|
+
"debugId": "F9376091D0570D8C64756E2164756E21",
|
|
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: {
|
|
@@ -93,7 +93,7 @@ declare const appRouter: hono_hono_base.HonoBase<{
|
|
|
93
93
|
input: {
|
|
94
94
|
param: {
|
|
95
95
|
subscriptionId: string;
|
|
96
|
-
action: "
|
|
96
|
+
action: "cancel" | "update";
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
output: undefined;
|
|
@@ -101,6 +101,20 @@ declare const appRouter: hono_hono_base.HonoBase<{
|
|
|
101
101
|
status: 302;
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
+
} & {
|
|
105
|
+
"/subscribe": {
|
|
106
|
+
$post: {
|
|
107
|
+
input: {};
|
|
108
|
+
output: "Unauthorized";
|
|
109
|
+
outputFormat: "text";
|
|
110
|
+
status: 401;
|
|
111
|
+
} | {
|
|
112
|
+
input: {};
|
|
113
|
+
output: "Success";
|
|
114
|
+
outputFormat: "text";
|
|
115
|
+
status: 200;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
104
118
|
}, "/">;
|
|
105
119
|
type AppRouter = typeof appRouter;
|
|
106
120
|
|
|
@@ -169,6 +183,15 @@ declare const publicRouter: hono_hono_base.HonoBase<{
|
|
|
169
183
|
} & {
|
|
170
184
|
"/products/:productId": {
|
|
171
185
|
$get: {
|
|
186
|
+
input: {
|
|
187
|
+
param: {
|
|
188
|
+
productId: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
output: "Not found";
|
|
192
|
+
outputFormat: "text";
|
|
193
|
+
status: 404;
|
|
194
|
+
} | {
|
|
172
195
|
input: {
|
|
173
196
|
param: {
|
|
174
197
|
productId: string;
|
|
@@ -223,6 +246,12 @@ declare const publicRouter: hono_hono_base.HonoBase<{
|
|
|
223
246
|
}, "/">;
|
|
224
247
|
type PublicRouter = typeof publicRouter;
|
|
225
248
|
|
|
249
|
+
type PublicClient = ReturnType<typeof hc<PublicRouter>>;
|
|
250
|
+
declare const makePublicClient: (baseURL: string, options?: ClientRequestOptions) => PublicClient;
|
|
251
|
+
|
|
252
|
+
type AppClient = ReturnType<typeof hc<AppRouter>>;
|
|
253
|
+
declare const makeAppClient: (baseURL: string, options?: ClientRequestOptions) => AppClient;
|
|
254
|
+
|
|
226
255
|
declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
227
256
|
useListPasskeys: () => {
|
|
228
257
|
data: better_auth_plugins_passkey.Passkey[] | null;
|
|
@@ -239,8 +268,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
239
268
|
mode?: undici_types.RequestMode | undefined;
|
|
240
269
|
method?: string | undefined;
|
|
241
270
|
headers?: any;
|
|
242
|
-
keepalive?: boolean | undefined;
|
|
243
271
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
272
|
+
keepalive?: boolean | undefined;
|
|
244
273
|
integrity?: string | undefined;
|
|
245
274
|
signal?: (AbortSignal | null) | undefined;
|
|
246
275
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -310,8 +339,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
310
339
|
mode?: undici_types.RequestMode | undefined;
|
|
311
340
|
method?: string | undefined;
|
|
312
341
|
headers?: any;
|
|
313
|
-
keepalive?: boolean | undefined;
|
|
314
342
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
343
|
+
keepalive?: boolean | undefined;
|
|
315
344
|
integrity?: string | undefined;
|
|
316
345
|
signal?: (AbortSignal | null) | undefined;
|
|
317
346
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -389,8 +418,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
389
418
|
mode?: undici_types.RequestMode | undefined;
|
|
390
419
|
method?: string | undefined;
|
|
391
420
|
headers?: any;
|
|
392
|
-
keepalive?: boolean | undefined;
|
|
393
421
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
422
|
+
keepalive?: boolean | undefined;
|
|
394
423
|
integrity?: string | undefined;
|
|
395
424
|
signal?: (AbortSignal | null) | undefined;
|
|
396
425
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -456,8 +485,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
456
485
|
mode?: undici_types.RequestMode | undefined;
|
|
457
486
|
method?: string | undefined;
|
|
458
487
|
headers?: any;
|
|
459
|
-
keepalive?: boolean | undefined;
|
|
460
488
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
489
|
+
keepalive?: boolean | undefined;
|
|
461
490
|
integrity?: string | undefined;
|
|
462
491
|
signal?: (AbortSignal | null) | undefined;
|
|
463
492
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -543,8 +572,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
543
572
|
mode?: undici_types.RequestMode | undefined;
|
|
544
573
|
method?: string | undefined;
|
|
545
574
|
headers?: any;
|
|
546
|
-
keepalive?: boolean | undefined;
|
|
547
575
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
576
|
+
keepalive?: boolean | undefined;
|
|
548
577
|
integrity?: string | undefined;
|
|
549
578
|
signal?: (AbortSignal | null) | undefined;
|
|
550
579
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -617,8 +646,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
617
646
|
mode?: undici_types.RequestMode | undefined;
|
|
618
647
|
method?: string | undefined;
|
|
619
648
|
headers?: any;
|
|
620
|
-
keepalive?: boolean | undefined;
|
|
621
649
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
650
|
+
keepalive?: boolean | undefined;
|
|
622
651
|
integrity?: string | undefined;
|
|
623
652
|
signal?: (AbortSignal | null) | undefined;
|
|
624
653
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -680,8 +709,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
680
709
|
mode?: undici_types.RequestMode | undefined;
|
|
681
710
|
method?: string | undefined;
|
|
682
711
|
headers?: any;
|
|
683
|
-
keepalive?: boolean | undefined;
|
|
684
712
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
713
|
+
keepalive?: boolean | undefined;
|
|
685
714
|
integrity?: string | undefined;
|
|
686
715
|
signal?: (AbortSignal | null) | undefined;
|
|
687
716
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -747,8 +776,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
747
776
|
mode?: undici_types.RequestMode | undefined;
|
|
748
777
|
method?: string | undefined;
|
|
749
778
|
headers?: any;
|
|
750
|
-
keepalive?: boolean | undefined;
|
|
751
779
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
780
|
+
keepalive?: boolean | undefined;
|
|
752
781
|
integrity?: string | undefined;
|
|
753
782
|
signal?: (AbortSignal | null) | undefined;
|
|
754
783
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -812,8 +841,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
812
841
|
mode?: undici_types.RequestMode | undefined;
|
|
813
842
|
method?: string | undefined;
|
|
814
843
|
headers?: any;
|
|
815
|
-
keepalive?: boolean | undefined;
|
|
816
844
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
845
|
+
keepalive?: boolean | undefined;
|
|
817
846
|
integrity?: string | undefined;
|
|
818
847
|
signal?: (AbortSignal | null) | undefined;
|
|
819
848
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -876,8 +905,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
876
905
|
mode?: undici_types.RequestMode | undefined;
|
|
877
906
|
method?: string | undefined;
|
|
878
907
|
headers?: any;
|
|
879
|
-
keepalive?: boolean | undefined;
|
|
880
908
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
909
|
+
keepalive?: boolean | undefined;
|
|
881
910
|
integrity?: string | undefined;
|
|
882
911
|
signal?: (AbortSignal | null) | undefined;
|
|
883
912
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -936,8 +965,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
936
965
|
mode?: undici_types.RequestMode | undefined;
|
|
937
966
|
method?: string | undefined;
|
|
938
967
|
headers?: any;
|
|
939
|
-
keepalive?: boolean | undefined;
|
|
940
968
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
969
|
+
keepalive?: boolean | undefined;
|
|
941
970
|
integrity?: string | undefined;
|
|
942
971
|
signal?: (AbortSignal | null) | undefined;
|
|
943
972
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -999,8 +1028,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
999
1028
|
mode?: undici_types.RequestMode | undefined;
|
|
1000
1029
|
method?: string | undefined;
|
|
1001
1030
|
headers?: any;
|
|
1002
|
-
keepalive?: boolean | undefined;
|
|
1003
1031
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1032
|
+
keepalive?: boolean | undefined;
|
|
1004
1033
|
integrity?: string | undefined;
|
|
1005
1034
|
signal?: (AbortSignal | null) | undefined;
|
|
1006
1035
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1071,8 +1100,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1071
1100
|
mode?: undici_types.RequestMode | undefined;
|
|
1072
1101
|
method?: string | undefined;
|
|
1073
1102
|
headers?: any;
|
|
1074
|
-
keepalive?: boolean | undefined;
|
|
1075
1103
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1104
|
+
keepalive?: boolean | undefined;
|
|
1076
1105
|
integrity?: string | undefined;
|
|
1077
1106
|
signal?: (AbortSignal | null) | undefined;
|
|
1078
1107
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1129,8 +1158,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1129
1158
|
mode?: undici_types.RequestMode | undefined;
|
|
1130
1159
|
method?: string | undefined;
|
|
1131
1160
|
headers?: any;
|
|
1132
|
-
keepalive?: boolean | undefined;
|
|
1133
1161
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1162
|
+
keepalive?: boolean | undefined;
|
|
1134
1163
|
integrity?: string | undefined;
|
|
1135
1164
|
signal?: (AbortSignal | null) | undefined;
|
|
1136
1165
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1190,8 +1219,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1190
1219
|
mode?: undici_types.RequestMode | undefined;
|
|
1191
1220
|
method?: string | undefined;
|
|
1192
1221
|
headers?: any;
|
|
1193
|
-
keepalive?: boolean | undefined;
|
|
1194
1222
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1223
|
+
keepalive?: boolean | undefined;
|
|
1195
1224
|
integrity?: string | undefined;
|
|
1196
1225
|
signal?: (AbortSignal | null) | undefined;
|
|
1197
1226
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1255,8 +1284,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1255
1284
|
mode?: undici_types.RequestMode | undefined;
|
|
1256
1285
|
method?: string | undefined;
|
|
1257
1286
|
headers?: any;
|
|
1258
|
-
keepalive?: boolean | undefined;
|
|
1259
1287
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1288
|
+
keepalive?: boolean | undefined;
|
|
1260
1289
|
integrity?: string | undefined;
|
|
1261
1290
|
signal?: (AbortSignal | null) | undefined;
|
|
1262
1291
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1359,8 +1388,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1359
1388
|
mode?: undici_types.RequestMode | undefined;
|
|
1360
1389
|
method?: string | undefined;
|
|
1361
1390
|
headers?: any;
|
|
1362
|
-
keepalive?: boolean | undefined;
|
|
1363
1391
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1392
|
+
keepalive?: boolean | undefined;
|
|
1364
1393
|
integrity?: string | undefined;
|
|
1365
1394
|
signal?: (AbortSignal | null) | undefined;
|
|
1366
1395
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1418,8 +1447,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1418
1447
|
mode?: undici_types.RequestMode | undefined;
|
|
1419
1448
|
method?: string | undefined;
|
|
1420
1449
|
headers?: any;
|
|
1421
|
-
keepalive?: boolean | undefined;
|
|
1422
1450
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1451
|
+
keepalive?: boolean | undefined;
|
|
1423
1452
|
integrity?: string | undefined;
|
|
1424
1453
|
signal?: (AbortSignal | null) | undefined;
|
|
1425
1454
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1497,8 +1526,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1497
1526
|
mode?: undici_types.RequestMode | undefined;
|
|
1498
1527
|
method?: string | undefined;
|
|
1499
1528
|
headers?: any;
|
|
1500
|
-
keepalive?: boolean | undefined;
|
|
1501
1529
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1530
|
+
keepalive?: boolean | undefined;
|
|
1502
1531
|
integrity?: string | undefined;
|
|
1503
1532
|
signal?: (AbortSignal | null) | undefined;
|
|
1504
1533
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1560,8 +1589,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1560
1589
|
mode?: undici_types.RequestMode | undefined;
|
|
1561
1590
|
method?: string | undefined;
|
|
1562
1591
|
headers?: any;
|
|
1563
|
-
keepalive?: boolean | undefined;
|
|
1564
1592
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1593
|
+
keepalive?: boolean | undefined;
|
|
1565
1594
|
integrity?: string | undefined;
|
|
1566
1595
|
signal?: (AbortSignal | null) | undefined;
|
|
1567
1596
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1625,8 +1654,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1625
1654
|
mode?: undici_types.RequestMode | undefined;
|
|
1626
1655
|
method?: string | undefined;
|
|
1627
1656
|
headers?: any;
|
|
1628
|
-
keepalive?: boolean | undefined;
|
|
1629
1657
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1658
|
+
keepalive?: boolean | undefined;
|
|
1630
1659
|
integrity?: string | undefined;
|
|
1631
1660
|
signal?: (AbortSignal | null) | undefined;
|
|
1632
1661
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1701,8 +1730,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1701
1730
|
mode?: undici_types.RequestMode | undefined;
|
|
1702
1731
|
method?: string | undefined;
|
|
1703
1732
|
headers?: any;
|
|
1704
|
-
keepalive?: boolean | undefined;
|
|
1705
1733
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1734
|
+
keepalive?: boolean | undefined;
|
|
1706
1735
|
integrity?: string | undefined;
|
|
1707
1736
|
signal?: (AbortSignal | null) | undefined;
|
|
1708
1737
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1764,8 +1793,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1764
1793
|
mode?: undici_types.RequestMode | undefined;
|
|
1765
1794
|
method?: string | undefined;
|
|
1766
1795
|
headers?: any;
|
|
1767
|
-
keepalive?: boolean | undefined;
|
|
1768
1796
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1797
|
+
keepalive?: boolean | undefined;
|
|
1769
1798
|
integrity?: string | undefined;
|
|
1770
1799
|
signal?: (AbortSignal | null) | undefined;
|
|
1771
1800
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1827,8 +1856,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1827
1856
|
mode?: undici_types.RequestMode | undefined;
|
|
1828
1857
|
method?: string | undefined;
|
|
1829
1858
|
headers?: any;
|
|
1830
|
-
keepalive?: boolean | undefined;
|
|
1831
1859
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1860
|
+
keepalive?: boolean | undefined;
|
|
1832
1861
|
integrity?: string | undefined;
|
|
1833
1862
|
signal?: (AbortSignal | null) | undefined;
|
|
1834
1863
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1901,8 +1930,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1901
1930
|
mode?: undici_types.RequestMode | undefined;
|
|
1902
1931
|
method?: string | undefined;
|
|
1903
1932
|
headers?: any;
|
|
1904
|
-
keepalive?: boolean | undefined;
|
|
1905
1933
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
1934
|
+
keepalive?: boolean | undefined;
|
|
1906
1935
|
integrity?: string | undefined;
|
|
1907
1936
|
signal?: (AbortSignal | null) | undefined;
|
|
1908
1937
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -1968,8 +1997,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
1968
1997
|
mode?: undici_types.RequestMode | undefined;
|
|
1969
1998
|
method?: string | undefined;
|
|
1970
1999
|
headers?: any;
|
|
1971
|
-
keepalive?: boolean | undefined;
|
|
1972
2000
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2001
|
+
keepalive?: boolean | undefined;
|
|
1973
2002
|
integrity?: string | undefined;
|
|
1974
2003
|
signal?: (AbortSignal | null) | undefined;
|
|
1975
2004
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2031,8 +2060,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2031
2060
|
mode?: undici_types.RequestMode | undefined;
|
|
2032
2061
|
method?: string | undefined;
|
|
2033
2062
|
headers?: any;
|
|
2034
|
-
keepalive?: boolean | undefined;
|
|
2035
2063
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2064
|
+
keepalive?: boolean | undefined;
|
|
2036
2065
|
integrity?: string | undefined;
|
|
2037
2066
|
signal?: (AbortSignal | null) | undefined;
|
|
2038
2067
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2095,8 +2124,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2095
2124
|
mode?: undici_types.RequestMode | undefined;
|
|
2096
2125
|
method?: string | undefined;
|
|
2097
2126
|
headers?: any;
|
|
2098
|
-
keepalive?: boolean | undefined;
|
|
2099
2127
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2128
|
+
keepalive?: boolean | undefined;
|
|
2100
2129
|
integrity?: string | undefined;
|
|
2101
2130
|
signal?: (AbortSignal | null) | undefined;
|
|
2102
2131
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2158,8 +2187,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2158
2187
|
mode?: undici_types.RequestMode | undefined;
|
|
2159
2188
|
method?: string | undefined;
|
|
2160
2189
|
headers?: any;
|
|
2161
|
-
keepalive?: boolean | undefined;
|
|
2162
2190
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2191
|
+
keepalive?: boolean | undefined;
|
|
2163
2192
|
integrity?: string | undefined;
|
|
2164
2193
|
signal?: (AbortSignal | null) | undefined;
|
|
2165
2194
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2219,8 +2248,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2219
2248
|
mode?: undici_types.RequestMode | undefined;
|
|
2220
2249
|
method?: string | undefined;
|
|
2221
2250
|
headers?: any;
|
|
2222
|
-
keepalive?: boolean | undefined;
|
|
2223
2251
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2252
|
+
keepalive?: boolean | undefined;
|
|
2224
2253
|
integrity?: string | undefined;
|
|
2225
2254
|
signal?: (AbortSignal | null) | undefined;
|
|
2226
2255
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2277,8 +2306,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2277
2306
|
mode?: undici_types.RequestMode | undefined;
|
|
2278
2307
|
method?: string | undefined;
|
|
2279
2308
|
headers?: any;
|
|
2280
|
-
keepalive?: boolean | undefined;
|
|
2281
2309
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2310
|
+
keepalive?: boolean | undefined;
|
|
2282
2311
|
integrity?: string | undefined;
|
|
2283
2312
|
signal?: (AbortSignal | null) | undefined;
|
|
2284
2313
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2335,8 +2364,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2335
2364
|
mode?: undici_types.RequestMode | undefined;
|
|
2336
2365
|
method?: string | undefined;
|
|
2337
2366
|
headers?: any;
|
|
2338
|
-
keepalive?: boolean | undefined;
|
|
2339
2367
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2368
|
+
keepalive?: boolean | undefined;
|
|
2340
2369
|
integrity?: string | undefined;
|
|
2341
2370
|
signal?: (AbortSignal | null) | undefined;
|
|
2342
2371
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2421,8 +2450,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2421
2450
|
mode?: undici_types.RequestMode | undefined;
|
|
2422
2451
|
method?: string | undefined;
|
|
2423
2452
|
headers?: any;
|
|
2424
|
-
keepalive?: boolean | undefined;
|
|
2425
2453
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2454
|
+
keepalive?: boolean | undefined;
|
|
2426
2455
|
integrity?: string | undefined;
|
|
2427
2456
|
signal?: (AbortSignal | null) | undefined;
|
|
2428
2457
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2485,8 +2514,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2485
2514
|
mode?: undici_types.RequestMode | undefined;
|
|
2486
2515
|
method?: string | undefined;
|
|
2487
2516
|
headers?: any;
|
|
2488
|
-
keepalive?: boolean | undefined;
|
|
2489
2517
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2518
|
+
keepalive?: boolean | undefined;
|
|
2490
2519
|
integrity?: string | undefined;
|
|
2491
2520
|
signal?: (AbortSignal | null) | undefined;
|
|
2492
2521
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2551,8 +2580,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2551
2580
|
mode?: undici_types.RequestMode | undefined;
|
|
2552
2581
|
method?: string | undefined;
|
|
2553
2582
|
headers?: any;
|
|
2554
|
-
keepalive?: boolean | undefined;
|
|
2555
2583
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2584
|
+
keepalive?: boolean | undefined;
|
|
2556
2585
|
integrity?: string | undefined;
|
|
2557
2586
|
signal?: (AbortSignal | null) | undefined;
|
|
2558
2587
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2614,8 +2643,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2614
2643
|
mode?: undici_types.RequestMode | undefined;
|
|
2615
2644
|
method?: string | undefined;
|
|
2616
2645
|
headers?: any;
|
|
2617
|
-
keepalive?: boolean | undefined;
|
|
2618
2646
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2647
|
+
keepalive?: boolean | undefined;
|
|
2619
2648
|
integrity?: string | undefined;
|
|
2620
2649
|
signal?: (AbortSignal | null) | undefined;
|
|
2621
2650
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2677,8 +2706,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2677
2706
|
mode?: undici_types.RequestMode | undefined;
|
|
2678
2707
|
method?: string | undefined;
|
|
2679
2708
|
headers?: any;
|
|
2680
|
-
keepalive?: boolean | undefined;
|
|
2681
2709
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2710
|
+
keepalive?: boolean | undefined;
|
|
2682
2711
|
integrity?: string | undefined;
|
|
2683
2712
|
signal?: (AbortSignal | null) | undefined;
|
|
2684
2713
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2745,8 +2774,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2745
2774
|
mode?: undici_types.RequestMode | undefined;
|
|
2746
2775
|
method?: string | undefined;
|
|
2747
2776
|
headers?: any;
|
|
2748
|
-
keepalive?: boolean | undefined;
|
|
2749
2777
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2778
|
+
keepalive?: boolean | undefined;
|
|
2750
2779
|
integrity?: string | undefined;
|
|
2751
2780
|
signal?: (AbortSignal | null) | undefined;
|
|
2752
2781
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2808,8 +2837,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2808
2837
|
mode?: undici_types.RequestMode | undefined;
|
|
2809
2838
|
method?: string | undefined;
|
|
2810
2839
|
headers?: any;
|
|
2811
|
-
keepalive?: boolean | undefined;
|
|
2812
2840
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2841
|
+
keepalive?: boolean | undefined;
|
|
2813
2842
|
integrity?: string | undefined;
|
|
2814
2843
|
signal?: (AbortSignal | null) | undefined;
|
|
2815
2844
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2898,8 +2927,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2898
2927
|
mode?: undici_types.RequestMode | undefined;
|
|
2899
2928
|
method?: string | undefined;
|
|
2900
2929
|
headers?: any;
|
|
2901
|
-
keepalive?: boolean | undefined;
|
|
2902
2930
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2931
|
+
keepalive?: boolean | undefined;
|
|
2903
2932
|
integrity?: string | undefined;
|
|
2904
2933
|
signal?: (AbortSignal | null) | undefined;
|
|
2905
2934
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -2960,8 +2989,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
2960
2989
|
mode?: undici_types.RequestMode | undefined;
|
|
2961
2990
|
method?: string | undefined;
|
|
2962
2991
|
headers?: any;
|
|
2963
|
-
keepalive?: boolean | undefined;
|
|
2964
2992
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
2993
|
+
keepalive?: boolean | undefined;
|
|
2965
2994
|
integrity?: string | undefined;
|
|
2966
2995
|
signal?: (AbortSignal | null) | undefined;
|
|
2967
2996
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -3025,8 +3054,8 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3025
3054
|
mode?: undici_types.RequestMode | undefined;
|
|
3026
3055
|
method?: string | undefined;
|
|
3027
3056
|
headers?: any;
|
|
3028
|
-
keepalive?: boolean | undefined;
|
|
3029
3057
|
redirect?: undici_types.RequestRedirect | undefined;
|
|
3058
|
+
keepalive?: boolean | undefined;
|
|
3030
3059
|
integrity?: string | undefined;
|
|
3031
3060
|
signal?: (AbortSignal | null) | undefined;
|
|
3032
3061
|
credentials?: undici_types.RequestCredentials | undefined;
|
|
@@ -3128,6 +3157,7 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3128
3157
|
customer: {
|
|
3129
3158
|
id: string;
|
|
3130
3159
|
};
|
|
3160
|
+
subscribedToNewsletter: boolean;
|
|
3131
3161
|
}, {
|
|
3132
3162
|
code?: string;
|
|
3133
3163
|
message?: string;
|
|
@@ -3239,6 +3269,7 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3239
3269
|
customer: {
|
|
3240
3270
|
id: string;
|
|
3241
3271
|
};
|
|
3272
|
+
subscribedToNewsletter: boolean;
|
|
3242
3273
|
} | null;
|
|
3243
3274
|
isPending: boolean;
|
|
3244
3275
|
error: _better_fetch_fetch.BetterFetchError | null;
|
|
@@ -3297,6 +3328,7 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3297
3328
|
customer: {
|
|
3298
3329
|
id: string;
|
|
3299
3330
|
};
|
|
3331
|
+
subscribedToNewsletter: boolean;
|
|
3300
3332
|
};
|
|
3301
3333
|
};
|
|
3302
3334
|
$fetch: _better_fetch_fetch.BetterFetch<{
|
|
@@ -3396,12 +3428,13 @@ declare const makeUsBetterAuthClient: (baseURL: string) => {
|
|
|
3396
3428
|
USER_ALREADY_HAS_PASSWORD: string;
|
|
3397
3429
|
};
|
|
3398
3430
|
};
|
|
3431
|
+
|
|
3399
3432
|
type CheckoutClient = ReturnType<typeof hc<CheckoutRouter>>;
|
|
3400
3433
|
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
3434
|
|
|
3406
|
-
|
|
3435
|
+
declare function makeLoginUrl(apiUrl: string, redirectUrl?: string, appName?: string): string;
|
|
3436
|
+
declare function makeCheckoutUrl(apiUrl: string, priceId: string, productId: string, discountCode?: string, loginUrl?: string, pricingUrl?: string, successUrl?: string): string;
|
|
3437
|
+
declare function makeRedirectIntent(redirectUrl: string, appName?: string): string;
|
|
3438
|
+
|
|
3439
|
+
export { makeAppClient, makeCheckoutClient, makeCheckoutUrl, makeLoginUrl, makePublicClient, makeRedirectIntent, makeUsBetterAuthClient };
|
|
3407
3440
|
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.12",
|
|
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",
|