@accounts/two-factor
Advanced tools
Comparing version 1.0.0-alpha-20231122105229-8edd073f to 1.0.0-alpha-20231122120807-69a661e3
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './types'; | ||
import { type ErrorMessages } from './types'; | ||
export declare const errors: ErrorMessages; |
@@ -1,4 +0,4 @@ | ||
import { GeneratedSecret } from '@levminer/speakeasy'; | ||
import { User, DatabaseInterfaceUser } from '@accounts/types'; | ||
import { AccountsTwoFactorOptions } from './types'; | ||
import { type GeneratedSecret } from '@levminer/speakeasy'; | ||
import { type User, type DatabaseInterfaceUser } from '@accounts/types'; | ||
import { type AccountsTwoFactorOptions } from './types'; | ||
export declare class TwoFactor<CustomUser extends User = User> { | ||
@@ -5,0 +5,0 @@ private options; |
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './error-messages'; | ||
import { type ErrorMessages } from './error-messages'; | ||
export interface AccountsTwoFactorOptions { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import { GeneratedSecret } from '@levminer/speakeasy'; | ||
import { type GeneratedSecret } from '@levminer/speakeasy'; | ||
export interface TwoFactorService { | ||
secret: GeneratedSecret; | ||
} |
@@ -1,3 +0,3 @@ | ||
import { User } from '@accounts/types'; | ||
import { TwoFactorService } from '../types'; | ||
import { type User } from '@accounts/types'; | ||
import { type TwoFactorService } from '../types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Return the user two factor service object |
{ | ||
"name": "@accounts/two-factor", | ||
"version": "1.0.0-alpha-20231122105229-8edd073f", | ||
"version": "1.0.0-alpha-20231122120807-69a661e3", | ||
"license": "MIT", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/types": "1.0.0-alpha-20231122105229-8edd073f", | ||
"@accounts/types": "1.0.0-alpha-20231122120807-69a661e3", | ||
"@levminer/speakeasy": "1.4.2", | ||
@@ -32,0 +32,0 @@ "tslib": "2.6.2" |
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './types'; | ||
import { type ErrorMessages } from './types'; | ||
@@ -3,0 +3,0 @@ export const errors: ErrorMessages = { |
@@ -1,5 +0,5 @@ | ||
import { GeneratedSecret, generateSecret, totp } from '@levminer/speakeasy'; | ||
import { User, DatabaseInterfaceUser } from '@accounts/types'; | ||
import { type GeneratedSecret, generateSecret, totp } from '@levminer/speakeasy'; | ||
import { type User, type DatabaseInterfaceUser } from '@accounts/types'; | ||
import { errors } from './errors'; | ||
import { AccountsTwoFactorOptions } from './types'; | ||
import { type AccountsTwoFactorOptions } from './types'; | ||
import { getUserTwoFactorService } from './utils'; | ||
@@ -6,0 +6,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ErrorMessages } from './error-messages'; | ||
import { type ErrorMessages } from './error-messages'; | ||
@@ -3,0 +3,0 @@ export interface AccountsTwoFactorOptions { |
@@ -1,2 +0,2 @@ | ||
import { GeneratedSecret } from '@levminer/speakeasy'; | ||
import { type GeneratedSecret } from '@levminer/speakeasy'; | ||
@@ -3,0 +3,0 @@ export interface TwoFactorService { |
@@ -1,3 +0,3 @@ | ||
import { User } from '@accounts/types'; | ||
import { TwoFactorService } from '../types'; | ||
import { type User } from '@accounts/types'; | ||
import { type TwoFactorService } from '../types'; | ||
@@ -4,0 +4,0 @@ /** |
Sorry, the diff of this file is not supported yet
19225
+ Added@accounts/types@1.0.0-alpha-20231122120807-69a661e3(transitive)
- Removed@accounts/types@1.0.0-alpha-20231122105229-8edd073f(transitive)