@accounts/common
Advanced tools
Comparing version 0.1.0-alpha.58382c10 to 0.1.0-alpha.5b339220
@@ -1,9 +0,9 @@ | ||
import { PasswordLoginUserType } from './types'; | ||
import { LoginUserIdentityType } from './types'; | ||
export declare class AccountsError extends Error { | ||
loginInfo: PasswordLoginUserType; | ||
loginInfo: LoginUserIdentityType; | ||
errorCode: string | number; | ||
epochTime: number; | ||
constructor(message: string, loginInfo?: PasswordLoginUserType, errorCode?: string | number); | ||
constructor(message: string, loginInfo?: LoginUserIdentityType, errorCode?: string | number); | ||
toString(): string; | ||
serialize(): string; | ||
} |
@@ -1,8 +0,10 @@ | ||
import { HashAlgorithm } from './config'; | ||
export declare type PasswordType = string | { | ||
digest: string; | ||
algorithm: HashAlgorithm; | ||
}; | ||
export interface TokenRecord { | ||
token: string; | ||
address: string; | ||
when: number; | ||
reason: string; | ||
} | ||
export interface EmailRecord { | ||
address: string; | ||
verified: boolean; | ||
} | ||
@@ -20,6 +22,5 @@ export interface UserObjectType { | ||
email?: string; | ||
password?: PasswordType; | ||
profile?: object; | ||
} | ||
export interface PasswordLoginUserIdentityType { | ||
export interface LoginUserIdentityType { | ||
id?: string; | ||
@@ -29,3 +30,2 @@ username?: string; | ||
} | ||
export declare type PasswordLoginUserType = string | PasswordLoginUserIdentityType; | ||
export interface TokensType { | ||
@@ -32,0 +32,0 @@ accessToken?: string; |
{ | ||
"name": "@accounts/common", | ||
"version": "0.1.0-alpha.58382c10", | ||
"version": "0.1.0-alpha.5b339220", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -55,4 +55,3 @@ "main": "lib/index.js", | ||
"localstorage-polyfill": "^1.0.1", | ||
"regenerator-runtime": "^0.9.6", | ||
"rimraf": "^2.6.1" | ||
"regenerator-runtime": "^0.9.6" | ||
}, | ||
@@ -59,0 +58,0 @@ "dependencies": { |
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
3
13637