@corbado/web-core
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -5,2 +5,3 @@ import type { ProjectConfig, UserAuthMethods } from '@corbado/types'; | ||
import { Result } from 'ts-results'; | ||
import type { SessionRefreshRsp } from '../api'; | ||
import { AssetsApi, ProjectsApi, SessionsApi, UsersApi } from '../api'; | ||
@@ -32,2 +33,3 @@ import { AuthenticationResponse } from '../models/auth'; | ||
get sessionsApi(): SessionsApi; | ||
get sessionsApiWithAuth(): SessionsApi; | ||
/** | ||
@@ -56,2 +58,3 @@ * Public method to update the API instances with a new authentication token. | ||
userExists(userIdentifierType: UserIdentifier, identifier: string): Promise<Result<boolean, UserExistsError | undefined>>; | ||
sessionRefresh(): Promise<Result<SessionRefreshRsp | undefined, NonRecoverableError | undefined>>; | ||
} |
@@ -7,5 +7,6 @@ import type { AxiosError } from 'axios'; | ||
export type GlobalError = BehaviorSubject<NonRecoverableError | undefined>; | ||
export type SessionRefreshError = UnknownError; | ||
/** Passkey Authentication Errors */ | ||
export type SignUpWithPasskeyError = UserAlreadyExistsError | InvalidEmailError | InvalidFullnameError | PasskeyChallengeCancelledError | UnknownError; | ||
export type AppendPasskeyError = PasskeyChallengeCancelledError | UnknownError; | ||
export type AppendPasskeyError = PasskeyAlreadyExistsError | PasskeyChallengeCancelledError | UnknownError; | ||
export type LoginWithPasskeyError = InvalidEmailError | InvalidPasskeyError | PasskeyChallengeCancelledError | InitAutocompletedLoginWithPasskeyError | ConditionalUiNotSupportedError | UnknownError; | ||
@@ -68,2 +69,5 @@ export type InitAutocompletedLoginWithPasskeyError = UnknownError; | ||
} | ||
export declare class UnAuthenticatedError extends RecoverableError { | ||
constructor(); | ||
} | ||
export declare class UserAlreadyExistsError extends RecoverableError { | ||
@@ -70,0 +74,0 @@ constructor(); |
{ | ||
"name": "@corbado/web-core", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "This package contains core functionalities which are exported by all the SDKs and UI packages of our JavaScript library", | ||
@@ -45,3 +45,3 @@ "author": "Abdullah Shahbaz <abdullah_ghani@live.com>", | ||
}, | ||
"gitHead": "dd68aab23d09370ce1e4a95e0437697d053e7113" | ||
"gitHead": "4f736538e2ac182dc74a63c52d2112b787769988" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
697231
4170