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

@accounts/magic-link

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/magic-link - npm Package Compare versions

Comparing version 1.0.0-alpha-20231122105229-8edd073f to 1.0.0-alpha-20231122120807-69a661e3

4

lib/accounts-magic-link.d.ts

@@ -1,4 +0,4 @@

import { User, DatabaseInterface, AuthenticationService, LoginUserMagicLinkService, TokenRecord, DatabaseInterfaceUser } from '@accounts/types';
import { type User, type DatabaseInterface, type AuthenticationService, type LoginUserMagicLinkService, type TokenRecord, type DatabaseInterfaceUser } from '@accounts/types';
import { AccountsServer } from '@accounts/server';
import { ErrorMessages } from './types';
import { type ErrorMessages } from './types';
export interface AccountsMagicLinkOptions {

@@ -5,0 +5,0 @@ /**

@@ -85,2 +85,3 @@ "use strict";

tslib_1.__param(0, (0, graphql_modules_1.Inject)(types_1.AccountsMagicLinkConfigToken)),
tslib_1.__param(1, (0, graphql_modules_1.Inject)(server_1.AccountsServer)),
tslib_1.__param(2, (0, graphql_modules_1.Inject)(server_1.DatabaseInterfaceUserToken)),

@@ -87,0 +88,0 @@ tslib_1.__metadata("design:paramtypes", [Object, server_1.AccountsServer, Object])

@@ -1,2 +0,2 @@

import { ErrorMessages } from './types';
import { type ErrorMessages } from './types';
export declare const errors: ErrorMessages;

@@ -3,0 +3,0 @@ export declare enum MagicLinkAuthenticatorErrors {

import { InjectionToken } from 'graphql-modules';
import { AccountsMagicLinkOptions } from '../accounts-magic-link';
import { type AccountsMagicLinkOptions } from '../accounts-magic-link';
export declare const AccountsMagicLinkConfigToken: InjectionToken<AccountsMagicLinkOptions>;

@@ -1,2 +0,2 @@

import { User, TokenRecord } from '@accounts/types';
import { type User, type TokenRecord } from '@accounts/types';
export declare const getUserLoginTokens: (user: User) => TokenRecord[];
{
"name": "@accounts/magic-link",
"version": "1.0.0-alpha-20231122105229-8edd073f",
"version": "1.0.0-alpha-20231122120807-69a661e3",
"license": "MIT",

@@ -32,4 +32,4 @@ "main": "lib/index.js",

"devDependencies": {
"@accounts/server": "1.0.0-alpha-20231122105229-8edd073f",
"@accounts/types": "1.0.0-alpha-20231122105229-8edd073f",
"@accounts/server": "1.0.0-alpha-20231122120807-69a661e3",
"@accounts/types": "1.0.0-alpha-20231122120807-69a661e3",
"@types/bcryptjs": "2.4.6",

@@ -43,5 +43,5 @@ "@types/lodash.set": "4.3.9",

"peerDependencies": {
"@accounts/server": "1.0.0-alpha-20231122105229-8edd073f",
"@accounts/server": "1.0.0-alpha-20231122120807-69a661e3",
"graphql-modules": "^3.0.0"
}
}
import {
User,
DatabaseInterface,
AuthenticationService,
LoginUserMagicLinkService,
TokenRecord,
DatabaseInterfaceUser,
type User,
type DatabaseInterface,
type AuthenticationService,
type LoginUserMagicLinkService,
type TokenRecord,
type DatabaseInterfaceUser,
} from '@accounts/types';

@@ -15,3 +15,3 @@ import {

} from '@accounts/server';
import { AccountsMagicLinkConfigToken, ErrorMessages } from './types';
import { AccountsMagicLinkConfigToken, type ErrorMessages } from './types';
import { errors, AuthenticateErrors, MagicLinkAuthenticatorErrors } from './errors';

@@ -54,3 +54,3 @@ import { isString } from './utils/validation';

@Inject(AccountsMagicLinkConfigToken) options: AccountsMagicLinkOptions = {},
server?: AccountsServer,
@Inject(AccountsServer) server?: AccountsServer,
@Inject(DatabaseInterfaceUserToken)

@@ -57,0 +57,0 @@ db?: DatabaseInterface<CustomUser> | DatabaseInterfaceUser<CustomUser>

@@ -1,2 +0,2 @@

import { ErrorMessages } from './types';
import { type ErrorMessages } from './types';

@@ -3,0 +3,0 @@ export const errors: ErrorMessages = {

import { InjectionToken } from 'graphql-modules';
import { AccountsMagicLinkOptions } from '../accounts-magic-link';
import { type AccountsMagicLinkOptions } from '../accounts-magic-link';

@@ -4,0 +4,0 @@ export const AccountsMagicLinkConfigToken = new InjectionToken<AccountsMagicLinkOptions>(

@@ -1,2 +0,2 @@

import { User, TokenRecord } from '@accounts/types';
import { type User, type TokenRecord } from '@accounts/types';

@@ -3,0 +3,0 @@ export const getUserLoginTokens = (user: User): TokenRecord[] => {

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