@corbado/web-core
Advanced tools
Comparing version
@@ -6,3 +6,2 @@ export * from './utils'; | ||
export * from './models/lastIdentifier'; | ||
export * from './models/connect/connectLastLogin'; | ||
export { CredentialRequestOptionsJSON } from '@corbado/webauthn-json'; |
import { type AxiosResponse } from 'axios'; | ||
import type { Result } from 'ts-results'; | ||
import type { ConnectAppendFinishRsp, ConnectAppendStartRsp, ConnectLoginFinishRsp, ConnectLoginStartRsp, ConnectManageDeleteRsp, ConnectManageListRsp } from '../api/v2'; | ||
import { ConnectLastLogin } from '../models/connect/connectLastLogin'; | ||
import type { ConnectAppendInitData, ConnectLoginInitData, ConnectManageInitData } from '../models/connect/login'; | ||
import type { PasskeyLoginSource } from '../utils'; | ||
import { CorbadoError } from '../utils'; | ||
import type { LastLogin } from './ClientStateService'; | ||
export declare class ConnectService { | ||
@@ -25,2 +25,3 @@ #private; | ||
setInvitation(token: string): void; | ||
handleNa(): void; | ||
recordEventLoginError(messageCode: string): Promise<Result<void, CorbadoError>> | undefined; | ||
@@ -38,4 +39,7 @@ recordEventLoginExplicitAbort(assertionOptions?: string): Promise<Result<void, CorbadoError>> | undefined; | ||
recordEventAppendExplicitAbort(attestationOptions?: string): Promise<Result<void, CorbadoError>> | undefined; | ||
getLastLogin(): ConnectLastLogin | undefined; | ||
recordEventAppendLearnMore(): Promise<Result<void, CorbadoError>> | undefined; | ||
getLastLogin(): LastLogin | undefined; | ||
clearLastLogin(): void; | ||
enrichClientState(encoded?: string): void; | ||
encodeClientState(): string; | ||
} |
@@ -5,2 +5,3 @@ import type { ClientCapabilities } from '@corbado/types'; | ||
import { CorbadoError } from '../utils'; | ||
import type { ClientStateEntry } from './ClientStateService'; | ||
/** | ||
@@ -14,3 +15,3 @@ * AuthenticatorService handles all interactions with webAuthn platform authenticators. | ||
login(serializedChallenge: string, conditional: boolean, onConditionalLoginStart?: (ac: AbortController) => void): Promise<Result<string, CorbadoError>>; | ||
getClientInformation(): Promise<ClientInformation>; | ||
getClientInformation(maybeClientHandle: ClientStateEntry<string> | undefined): Promise<ClientInformation>; | ||
static doesBrowserSupportPasskeys(): Promise<boolean | undefined>; | ||
@@ -21,5 +22,3 @@ static doesBrowserSupportConditionalUI(): Promise<boolean | undefined>; | ||
static getWebdriver(): boolean; | ||
static getClientHandle(): string | null; | ||
static getHighEntropyValues(): Promise<JavaScriptHighEntropy | undefined>; | ||
static setClientHandle(clientHandle: string): void; | ||
abortOngoingOperation(): AbortController; | ||
@@ -26,0 +25,0 @@ static getClientCapabilities(): Promise<ClientCapabilities | undefined>; |
import type { AxiosError } from 'axios'; | ||
import type { RequestError } from '../../api/v2'; | ||
/** General Errors */ | ||
@@ -20,3 +19,2 @@ export type GetProcessError = ProcessNotFound; | ||
static fromAxiosError(error: AxiosError): RecoverableError | NonRecoverableError; | ||
static fromConnectErrorResponse(error: RequestError): RecoverableError; | ||
static fromConnectAxiosError(error: AxiosError): RecoverableError | NonRecoverableError; | ||
@@ -23,0 +21,0 @@ static fromDOMException(e: DOMException): CorbadoError; |
{ | ||
"name": "@corbado/web-core", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "This package contains core functionalities which are exported by all the SDKs and UI packages of our JavaScript library", | ||
@@ -46,7 +46,7 @@ "author": "Abdullah Shahbaz <abdullah_ghani@live.com>", | ||
"devDependencies": { | ||
"@corbado/types": "^3.0.0", | ||
"@corbado/types": "^3.0.1", | ||
"@types/web-bluetooth": "^0.0.20", | ||
"user-agent-data-types": "^0.4.2" | ||
}, | ||
"gitHead": "51f6f8b21abdd2eacd83310d3581911370fd3cf3" | ||
"gitHead": "d0a9081db8d24c622189c2f493de685ac3f98c5f" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1252574
0.96%8640
1.08%