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

@8base/utils

Package Overview
Dependencies
Maintainers
3
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@8base/utils - npm Package Compare versions

Comparing version 0.21.4 to 0.22.0

32

dist/index.d.ts

@@ -156,1 +156,33 @@

export const tableFieldSelectors: { [key: string]: Function };
export const throwIfMissingRequiredOption: Function;
export type AuthState = {
email?: string,
userId?: string,
workspaceId?: string,
refreshToken?: string,
token?: string,
}
export type AuthData = {
isEmailVerified: boolean,
idToken: string,
email: string,
idTokenPayload: Object,
state: any,
};
export interface AuthClient {
getAuthState(): Promise<AuthState>,
setAuthState(state: AuthState): Promise<void>,
purgeAuthState(): Promise<void>,
checkIsAuthorized(): Promise<boolean>,
}
export interface Authorizable {
authorize(options?: Object): Promise<AuthData>,
renewToken(options?: Object): Promise<AuthData>,
changePassword(): Promise<{ email: string }>,
logout(options?: Object): Promise<void>,
}

2

package.json
{
"name": "@8base/utils",
"version": "0.21.4",
"version": "0.22.0",
"repository": "https://github.com/8base/sdk",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/8base/sdk/tree/master/packages/utils#readme",

@@ -156,1 +156,33 @@

export const tableFieldSelectors: { [key: string]: Function };
export const throwIfMissingRequiredOption: Function;
export type AuthState = {
email?: string,
userId?: string,
workspaceId?: string,
refreshToken?: string,
token?: string,
}
export type AuthData = {
isEmailVerified: boolean,
idToken: string,
email: string,
idTokenPayload: Object,
state: any,
};
export interface AuthClient {
getAuthState(): Promise<AuthState>,
setAuthState(state: AuthState): Promise<void>,
purgeAuthState(): Promise<void>,
checkIsAuthorized(): Promise<boolean>,
}
export interface Authorizable {
authorize(options?: Object): Promise<AuthData>,
renewToken(options?: Object): Promise<AuthData>,
changePassword(): Promise<{ email: string }>,
logout(options?: Object): Promise<void>,
}
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