@applers/auth-magic-link-nest
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -45,2 +45,3 @@ "use strict"; | ||
...options.config, | ||
allowReuseOfMagicLink: !!options.config.allowReuseOfMagicLink, | ||
paths: { | ||
@@ -47,0 +48,0 @@ ...options.config.paths, |
@@ -32,2 +32,3 @@ import { RouteInfo } from '@nestjs/common/interfaces'; | ||
export interface AuthMagicLinkConfig { | ||
allowReuseOfMagicLink?: boolean; | ||
frontendUrls: AuthMagicLinkFrontendUrlsConfig; | ||
@@ -34,0 +35,0 @@ paths: AuthMagicLinkPathsConfig; |
@@ -0,6 +1,7 @@ | ||
import { FullAuthMagicLinkConfig } from '../types'; | ||
declare const ValidateMagicLinkGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>; | ||
export declare class ValidateMagicLinkGuard extends ValidateMagicLinkGuard_base { | ||
constructor(); | ||
constructor(config: FullAuthMagicLinkConfig); | ||
} | ||
export {}; | ||
//# sourceMappingURL=validate-magic-link.guard.d.ts.map |
@@ -11,2 +11,5 @@ "use strict"; | ||
}; | ||
var __param = (this && this.__param) || function (paramIndex, decorator) { | ||
return function (target, key) { decorator(target, key, paramIndex); } | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -17,8 +20,8 @@ exports.ValidateMagicLinkGuard = void 0; | ||
const constants_1 = require("../constants"); | ||
const module_util_1 = require("../module.util"); | ||
let ValidateMagicLinkGuard = exports.ValidateMagicLinkGuard = class ValidateMagicLinkGuard extends (0, passport_1.AuthGuard)(constants_1.strategyNames.magicLink) { | ||
constructor() { | ||
constructor(config) { | ||
super({ | ||
action: 'acceptToken', | ||
// any other options can be provided here | ||
allowReuse: false, | ||
allowReuse: config.allowReuseOfMagicLink, | ||
}); | ||
@@ -29,4 +32,5 @@ } | ||
(0, common_1.Injectable)(), | ||
__metadata("design:paramtypes", []) | ||
__param(0, (0, module_util_1.InjectAuthMagicLinkConfig)()), | ||
__metadata("design:paramtypes", [Object]) | ||
], ValidateMagicLinkGuard); | ||
//# sourceMappingURL=validate-magic-link.guard.js.map |
{ | ||
"name": "@applers/auth-magic-link-nest", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Can Pekesen <cpekesen@applers.de>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175704
941