@accounts/magic-link
Advanced tools
Comparing version 1.0.0-alpha-20231122105229-8edd073f to 1.0.0-alpha-20231122120807-69a661e3
@@ -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
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
26923
459