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

@accounts/common

Package Overview
Dependencies
Maintainers
5
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/common - npm Package Compare versions

Comparing version 0.1.0-alpha.5b339220 to 0.1.0-alpha.6732aa8e

6

lib/errors.d.ts

@@ -1,9 +0,9 @@

import { LoginUserIdentityType } from './types';
import { PasswordLoginUserType } from './types';
export declare class AccountsError extends Error {
loginInfo: LoginUserIdentityType;
loginInfo: PasswordLoginUserType;
errorCode: string | number;
epochTime: number;
constructor(message: string, loginInfo?: LoginUserIdentityType, errorCode?: string | number);
constructor(message: string, loginInfo?: PasswordLoginUserType, errorCode?: string | number);
toString(): string;
serialize(): string;
}

@@ -1,10 +0,8 @@

export interface TokenRecord {
token: string;
address: string;
when: number;
reason: string;
}
import { HashAlgorithm } from './config';
export declare type PasswordType = string | {
digest: string;
algorithm: HashAlgorithm;
};
export interface EmailRecord {
address: string;
verified: boolean;
}

@@ -22,5 +20,6 @@ export interface UserObjectType {

email?: string;
password?: PasswordType;
profile?: object;
}
export interface LoginUserIdentityType {
export interface PasswordLoginUserIdentityType {
id?: string;

@@ -30,2 +29,3 @@ 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.5b339220",
"version": "0.1.0-alpha.6732aa8e",
"description": "Fullstack authentication and accounts-management",

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

"localstorage-polyfill": "^1.0.1",
"regenerator-runtime": "^0.9.6"
"regenerator-runtime": "^0.9.6",
"rimraf": "^2.6.1"
},

@@ -58,0 +59,0 @@ "dependencies": {

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