@tern-secure/backend 1.2.0-canary.v20251020170039 → 1.2.0-canary.v20251023005301
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/createRedirect.d.ts +20 -0
- package/dist/createRedirect.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +71 -103
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -102
- package/dist/index.mjs.map +1 -1
- package/dist/tokens/authstate.d.ts +7 -2
- package/dist/tokens/authstate.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/instance/backendFireInstance.d.ts +0 -7
- package/dist/instance/backendFireInstance.d.ts.map +0 -1
- package/dist/tokens/requestFire.d.ts +0 -17
- package/dist/tokens/requestFire.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tern-secure/backend",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.v20251023005301",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/TernSecure/auth.git",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"jose": "^5.10.0",
|
|
78
78
|
"tslib": "2.4.1",
|
|
79
79
|
"@upstash/redis": "^1.35.2",
|
|
80
|
-
"@tern-secure/shared": "1.3.0-canary.
|
|
81
|
-
"@tern-secure/types": "1.1.0-canary.
|
|
80
|
+
"@tern-secure/shared": "1.3.0-canary.v20251023005301",
|
|
81
|
+
"@tern-secure/types": "1.1.0-canary.v20251023005301"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@types/js-cookie": "^3.0.6",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ApiClient, CreateFireApiOptions } from '../fireRestApi';
|
|
2
|
-
import type { CreateFireAuthenticateRequestOptions } from '../tokens/requestFire';
|
|
3
|
-
import { createFireAuthenticateRequest } from '../tokens/requestFire';
|
|
4
|
-
export type TernSecureFireOptions = CreateFireApiOptions & CreateFireAuthenticateRequestOptions['options'];
|
|
5
|
-
export type TernSecureFireClient = ApiClient & ReturnType<typeof createFireAuthenticateRequest>;
|
|
6
|
-
export declare function createFireClient(options: TernSecureFireOptions): TernSecureFireClient;
|
|
7
|
-
//# sourceMappingURL=backendFireInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backendFireInstance.d.ts","sourceRoot":"","sources":["../../src/instance/backendFireInstance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAEtE,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GACtD,oCAAoC,CAAC,SAAS,CAAC,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEhG,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,GAAG,oBAAoB,CASrF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RequestState } from './authstate';
|
|
2
|
-
import type { AuthenticateFireRequestOptions } from './types';
|
|
3
|
-
type RuntimeOptions = Omit<AuthenticateFireRequestOptions, 'firebaseConfig'>;
|
|
4
|
-
type FirebaseOptions = Partial<Pick<AuthenticateFireRequestOptions, 'firebaseConfig'>>;
|
|
5
|
-
export declare function mergePreDefinedOptions<T extends Record<string, any>>(preDefinedOptions: T, options: Partial<T>): T;
|
|
6
|
-
export declare function authenticateRequest(request: Request, options: AuthenticateFireRequestOptions): Promise<RequestState>;
|
|
7
|
-
/**
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export type CreateFireAuthenticateRequestOptions = {
|
|
11
|
-
options: FirebaseOptions;
|
|
12
|
-
};
|
|
13
|
-
export declare function createFireAuthenticateRequest(params: CreateFireAuthenticateRequestOptions): {
|
|
14
|
-
authenticateRequest: (request: Request, options?: RuntimeOptions) => Promise<RequestState>;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=requestFire.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requestFire.d.ts","sourceRoot":"","sources":["../../src/tokens/requestFire.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,8BAA8B,EAAI,MAAM,SAAS,CAAC;AAGhE,KAAK,cAAc,GAAG,IAAI,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,CAAC;AAE7E,KAAK,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,gBAAgB,CAAC,CAAC,CAAC;AASvF,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAClE,iBAAiB,EAAE,CAAC,EACpB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAClB,CAAC,CAOH;AAsCD,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,YAAY,CAAC,CAqCvB;AAED;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,oCAAoC;mCAG5C,OAAO,YAAW,cAAc;EAQ7E"}
|