@tekcify/auth-backend 2.0.1 → 2.0.2
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/express/index.d.ts +2 -2
- package/dist/express/index.d.ts.map +1 -1
- package/dist/express/index.js +1 -1
- package/dist/express/middleware.d.ts +1 -1
- package/dist/express/middleware.d.ts.map +1 -1
- package/dist/express/middleware.js +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/nestjs/guard.d.ts +1 -1
- package/dist/nestjs/guard.d.ts.map +1 -1
- package/dist/nestjs/guard.js +1 -1
- package/dist/nestjs/index.d.ts +4 -4
- package/dist/nestjs/index.d.ts.map +1 -1
- package/dist/nestjs/index.js +2 -2
- package/dist/verify.d.ts +1 -1
- package/dist/verify.d.ts.map +1 -1
- package/package.json +2 -1
package/dist/express/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createAuthMiddleware } from './middleware';
|
|
2
|
-
export type { ExpressAuthOptions } from './middleware';
|
|
1
|
+
export { createAuthMiddleware } from './middleware.js';
|
|
2
|
+
export type { ExpressAuthOptions } from './middleware.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/express/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/express/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { createAuthMiddleware } from './middleware';
|
|
1
|
+
export { createAuthMiddleware } from './middleware.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Request, Response, NextFunction } from 'express';
|
|
2
|
-
import type { VerifyTokenOptions, UserPayload } from '../types';
|
|
2
|
+
import type { VerifyTokenOptions, UserPayload } from '../types.js';
|
|
3
3
|
export interface ExpressAuthOptions extends VerifyTokenOptions {
|
|
4
4
|
getUserInfo?: (userId: string) => Promise<{
|
|
5
5
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/express/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/express/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;CACrE;AAED,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,OAAO,CAAC;QAChB,UAAU,OAAO;YACf,IAAI,CAAC,EAAE,WAAW,CAAC;SACpB;KACF;CACF;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,IAE5D,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,MAAM,YAAY,KACjB,OAAO,CAAC,IAAI,CAAC,CAsCjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './verify';
|
|
3
|
-
export * from './userinfo';
|
|
4
|
-
export * from './user-profile';
|
|
5
|
-
export * from './application-management';
|
|
6
|
-
export * from './nestjs';
|
|
7
|
-
export * from './express';
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './verify.js';
|
|
3
|
+
export * from './userinfo.js';
|
|
4
|
+
export * from './user-profile.js';
|
|
5
|
+
export * from './application-management.js';
|
|
6
|
+
export * from './nestjs/index.js';
|
|
7
|
+
export * from './express/index.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export * from './verify';
|
|
3
|
-
export * from './userinfo';
|
|
4
|
-
export * from './user-profile';
|
|
5
|
-
export * from './application-management';
|
|
6
|
-
export * from './nestjs';
|
|
7
|
-
export * from './express';
|
|
1
|
+
export * from './types.js';
|
|
2
|
+
export * from './verify.js';
|
|
3
|
+
export * from './userinfo.js';
|
|
4
|
+
export * from './user-profile.js';
|
|
5
|
+
export * from './application-management.js';
|
|
6
|
+
export * from './nestjs/index.js';
|
|
7
|
+
export * from './express/index.js';
|
package/dist/nestjs/guard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CanActivate, ExecutionContext } from '@nestjs/common';
|
|
2
|
-
import type { VerifyTokenOptions } from '../types';
|
|
2
|
+
import type { VerifyTokenOptions } from '../types.js';
|
|
3
3
|
export interface JwtAuthGuardOptions extends VerifyTokenOptions {
|
|
4
4
|
getUserInfo?: (userId: string) => Promise<{
|
|
5
5
|
email: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../src/nestjs/guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,gBAAgB,EAEjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"guard.d.ts","sourceRoot":"","sources":["../../src/nestjs/guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EACX,gBAAgB,EAEjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,aAAa,CAAC;AAEnE,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;CACrE;AAED,qBACa,YAAa,YAAW,WAAW;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,mBAAmB;IAEnD,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;CAsC/D"}
|
package/dist/nestjs/guard.js
CHANGED
|
@@ -37,7 +37,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|
|
37
37
|
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
38
38
|
};
|
|
39
39
|
import { Injectable, UnauthorizedException, } from '@nestjs/common';
|
|
40
|
-
import { verifyAccessToken } from '../verify';
|
|
40
|
+
import { verifyAccessToken } from '../verify.js';
|
|
41
41
|
let JwtAuthGuard = (() => {
|
|
42
42
|
let _classDecorators = [Injectable()];
|
|
43
43
|
let _classDescriptor;
|
package/dist/nestjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { JwtAuthGuard } from './guard';
|
|
2
|
-
export type { JwtAuthGuardOptions } from './guard';
|
|
3
|
-
export { CurrentUser } from './decorator';
|
|
4
|
-
export type { UserPayload } from '../types';
|
|
1
|
+
export { JwtAuthGuard } from './guard.js';
|
|
2
|
+
export type { JwtAuthGuardOptions } from './guard.js';
|
|
3
|
+
export { CurrentUser } from './decorator.js';
|
|
4
|
+
export type { UserPayload } from '../types.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nestjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/nestjs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/nestjs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { JwtAuthGuard } from './guard';
|
|
2
|
-
export { CurrentUser } from './decorator';
|
|
1
|
+
export { JwtAuthGuard } from './guard.js';
|
|
2
|
+
export { CurrentUser } from './decorator.js';
|
package/dist/verify.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TokenPayload, VerifyTokenOptions, VerifiedToken } from "./types";
|
|
1
|
+
import type { TokenPayload, VerifyTokenOptions, VerifiedToken } from "./types.js";
|
|
2
2
|
export declare function verifyAccessToken(token: string, options: VerifyTokenOptions): VerifiedToken;
|
|
3
3
|
export declare function decodeToken(token: string): TokenPayload | null;
|
|
4
4
|
//# sourceMappingURL=verify.d.ts.map
|
package/dist/verify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../src/verify.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAElF,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,kBAAkB,GAC1B,aAAa,CAqBf;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAM9D"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekcify/auth-backend",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Backend authentication helpers for Tekcify Auth. Provides middleware, guards, and utilities for validating JWT tokens and protecting API routes in NestJS and Express applications.",
|
|
5
5
|
"author": "Tekcify",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"main": "./dist/index.js",
|
|
7
8
|
"types": "./dist/index.d.ts",
|
|
8
9
|
"repository": {
|