@8base/utils
Advanced tools
Comparing version 0.21.4 to 0.22.0
@@ -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>, | ||
} |
{ | ||
"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>, | ||
} |
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
3955
176144
131