Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applers/auth-magic-link-nest

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applers/auth-magic-link-nest - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

1

dist/src/auth-magic-link.module.js

@@ -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;

3

dist/src/magic-link/validate-magic-link.guard.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc