@take-out/better-auth-utils 0.1.21 → 0.1.23
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.native.js
CHANGED
|
@@ -17,5 +17,5 @@ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
|
17
17
|
}), mod);
|
|
18
18
|
var index_exports = {};
|
|
19
19
|
module.exports = __toCommonJS(index_exports);
|
|
20
|
-
__reExport(index_exports, require("./createAuthClient.
|
|
20
|
+
__reExport(index_exports, require("./createAuthClient.native.js"), module.exports);
|
|
21
21
|
//# sourceMappingURL=index.native.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@take-out/better-auth-utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"description": "Better auth utilities and client for React/React Native applications",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@take-out/helpers": "0.1.
|
|
44
|
+
"@take-out/helpers": "0.1.23",
|
|
45
45
|
"jose": "^6.0.10"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": ";;;;;;;;;AAUA,SACE,oBAEK,eAGA
|
|
3
|
-
"names": [
|
|
4
|
-
"user: User",
|
|
5
|
-
"state: AuthState<TUser>",
|
|
6
|
-
"error: any",
|
|
7
|
-
"props: { token: string; session: string }",
|
|
8
|
-
"session: string",
|
|
9
|
-
"options: Opts"
|
|
10
|
-
],
|
|
2
|
+
"mappings": ";;;;;;;;;AAUA,SACE,oBAEK,eAGA;AACP,cAAc,yBAAyB,wBAAwB;AAE/D,cAAc,SAAS,YAAY;AAEnC,iBAAiB,YAAY;CAC3B;CACA;;AAGF,YAAY,UAAU,UAAU,OAAO,QAAQ;CAC7C,OAAO,YAAY,cAAc;CACjC,SAAS;CACT,MAAM;;CAEN;;AAGF,iBAAiB,sBACf,cAAc,OAAO,cACb,wBAAwB;;;;;CAKhC,cAAc,MAAM,SAAS;;;;CAK7B,qBAAqB,OAAO,UAAU;;;;CAKtC,eAAe;;;;;CAMf;;;;;CAMA;;;;;;;CAQA;;;;;CAMA;;AAGF,iBAAiB;CAAuB,UAAU,OAAO;CAAM;EAAe;CAC5E;CACA,WAAW,kBAAkB,cAAc,UAAU;CACrD,YAAY;CACZ,qBAAqB,OAAO;EAAE;EAAe;OAAsB;CACnE;CACA;CACA,eAAe,UAAU;CACzB,eAAe,UAAU,KAAK;EAAE;;CAChC,qBAAqB;CACrB,mBAAmB;CACnB,mBAAmB;;KAGhB,UAAU,KAAK,UAAU;CAAE,cAAc,MAAM,eAAe;IAC/D,UAAU,OACR,IACA,OACF;AAEJ,OAAO,iBAAS,6BAA6B,aAAa,4BACxD,SAAS,OACR,uBAAuB,UAAU,OAAO,kBAAkB,iBAAiB",
|
|
3
|
+
"names": [],
|
|
11
4
|
"sources": [
|
|
12
5
|
"src/createAuthClient.ts"
|
|
13
6
|
],
|
package/types/server.d.ts
CHANGED
|
@@ -38,7 +38,6 @@ export type AuthServer = {
|
|
|
38
38
|
* JWT: native apps (Tauri, React Native) using Authorization header
|
|
39
39
|
*/
|
|
40
40
|
export declare function getAuthDataFromRequest(authServer: AuthServer, req: Request, tokenOptions?: ValidateTokenOptions): Promise<AuthData | null>;
|
|
41
|
-
// jwt validation for native apps
|
|
42
41
|
export declare function validateToken(token: string, options?: ValidateTokenOptions): Promise<JWTPayload>;
|
|
43
42
|
export declare function isValidJWT(token: string, options: ValidateTokenOptions): Promise<boolean>;
|
|
44
43
|
|
package/types/server.d.ts.map
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mappings": ";;;;;AAMA,cAA6C,kBAAkB
|
|
3
|
-
"names": [
|
|
4
|
-
"opts: { headers: Headers }",
|
|
5
|
-
"authServer: AuthServer",
|
|
6
|
-
"req: Request",
|
|
7
|
-
"tokenOptions?: ValidateTokenOptions",
|
|
8
|
-
"token: string",
|
|
9
|
-
"options?: ValidateTokenOptions",
|
|
10
|
-
"options: ValidateTokenOptions"
|
|
11
|
-
],
|
|
2
|
+
"mappings": ";;;;;AAMA,cAA6C,kBAAkB;AAE/D,iBAAiB,qBAAqB;;CAEpC;;CAEA;;CAEA;;AAGF,iBAAiB,SAAS;CACxB;CACA;CACA,MAAM;;AAGR,OAAO,cAAM,8BAA8B,MAAM;AACjD,OAAO,cAAM,0BAA0B,MAAM;AAE7C,YAAY,aAAa;CACvB,KAAK;EACH,aAAa,MAAM;GAAE,SAAS;QAC1B,QAAQ;GACN,MAAM;IAAE;IAAY;IAAuB;;cAE7C;;;;;;;;AASR,OAAO,iBAAe,uBACpB,YAAY,YACZ,KAAK,SACL,eAAe,uBACd,QAAQ;AAqDX,OAAO,iBAAe,cACpB,eACA,UAAU,uBACT,QAAQ;AAiCX,OAAO,iBAAe,WACpB,eACA,SAAS,uBACR",
|
|
3
|
+
"names": [],
|
|
12
4
|
"sources": [
|
|
13
5
|
"src/server.ts"
|
|
14
6
|
],
|