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

@corbado/web-core

Package Overview
Dependencies
Maintainers
5
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@corbado/web-core - npm Package Compare versions

Comparing version 0.1.7-alpha.4 to 0.1.7-alpha.6

2

dist/services/ApiService.d.ts

@@ -49,3 +49,3 @@ import type { ProjectConfig, UserAuthMethods } from '@corbado/types';

authMethodsList(email: string): Promise<Result<UserAuthMethods, AuthMethodsListError | undefined>>;
getProjectConfig(): Promise<Result<ProjectConfig, GetProjectConfigError | undefined>>;
getProjectConfig(): Promise<Result<ProjectConfig, GetProjectConfigError>>;
passkeyList(): Promise<Result<PassKeyList, PasskeyListError>>;

@@ -52,0 +52,0 @@ passkeyDelete(passkeyId: string): Promise<Result<void, PasskeyDeleteError>>;

import type { SessionUser } from '@corbado/types';
import { BehaviorSubject } from 'rxjs';
import type { Result } from 'ts-results';
import type { AppendPasskeyError, CompleteLoginWithEmailLinkError, CompleteLoginWithEmailOTPError, CompleteSignupWithEmailLinkError, CompleteSignupWithEmailOTPError, InitLoginWithEmailLinkError, InitLoginWithEmailOTPError, InitSignUpWithEmailLinkError, InitSignUpWithEmailOTPError, LoginWithPasskeyError, RecoverableError, SignUpWithPasskeyError } from '../utils';
import type { AppendPasskeyError, CompleteLoginWithEmailLinkError, CompleteLoginWithEmailOTPError, CompleteSignupWithEmailLinkError, CompleteSignupWithEmailOTPError, GetProjectConfigError, GlobalError, InitLoginWithEmailLinkError, InitLoginWithEmailOTPError, InitSignUpWithEmailLinkError, InitSignUpWithEmailOTPError, LoginWithPasskeyError, RecoverableError, SignUpWithPasskeyError } from '../utils';
import { AuthState } from '../utils';
import type { ApiService } from './ApiService';
import type { SessionService } from './SessionService';
import type { WebAuthnService } from './WebAuthnService';
/**

@@ -20,3 +18,3 @@ * AuthService is a class that handles authentication related operations.

*/
constructor(apiService: ApiService, sessionService: SessionService, webAuthnService: WebAuthnService);
constructor(apiService: ApiService, globalErrors: GlobalError);
/**

@@ -34,3 +32,3 @@ * Exposes changes to the user object

get authStateChanges(): BehaviorSubject<AuthState>;
init(isDebug: boolean | undefined, useSessionManagement: boolean): void;
init(isDebug?: boolean): Promise<Result<void, GetProjectConfigError>>;
/**

@@ -37,0 +35,0 @@ * Method to start registration of a user by sending an email with an OTP.

@@ -30,3 +30,7 @@ import type { CorbadoAppParams } from '@corbado/types';

*/
init(): void;
init(): Promise<void>;
/**
* Method to clear the global errors.
*/
clearGlobalErrors(): void;
}
import type { AxiosError } from 'axios';
import type { BehaviorSubject } from 'rxjs';
/** General Errors */
export type AuthMethodsListError = UnknownUserError | UnknownError;
export type GetProjectConfigError = UnknownError;
export type GlobalError = BehaviorSubject<NonRecoverableError | undefined>;
/** Passkey Authentication Errors */

@@ -6,0 +8,0 @@ export type SignUpWithPasskeyError = UserAlreadyExistsError | InvalidEmailError | InvalidFullnameError | PasskeyChallengeCancelledError | UnknownError;

{
"name": "@corbado/web-core",
"version": "0.1.7-alpha.4",
"version": "0.1.7-alpha.6",
"description": "This package contains core functionalities which are exported by all the SDKs and UI packages of our JavaScript library",

@@ -43,5 +43,5 @@ "author": "Abdullah Shahbaz <abdullah_ghani@live.com>",

"devDependencies": {
"@corbado/types": "^0.1.1-alpha.4"
"@corbado/types": "^0.1.1-alpha.6"
},
"gitHead": "3bd63094494204828688170d7461932d5786de53"
"gitHead": "428496e91739752ac47e54808f2124a6ce6bcc2a"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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