@supabase/gotrue-js
Advanced tools
Comparing version 2.66.1-rc.2 to 2.66.1-rc.3
@@ -60,2 +60,3 @@ import { WeakPasswordReasons } from './types'; | ||
} | ||
export declare function isAuthImplicitGrantRedirectError(error: any): error is AuthImplicitGrantRedirectError; | ||
export declare class AuthPKCEGrantCodeExchangeError extends CustomAuthError { | ||
@@ -62,0 +63,0 @@ details: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isAuthWeakPasswordError = exports.AuthWeakPasswordError = exports.isAuthRetryableFetchError = exports.AuthRetryableFetchError = exports.AuthPKCEGrantCodeExchangeError = exports.AuthImplicitGrantRedirectError = exports.AuthInvalidCredentialsError = exports.AuthInvalidTokenResponseError = exports.isAuthSessionMissingError = exports.AuthSessionMissingError = exports.CustomAuthError = exports.AuthUnknownError = exports.isAuthApiError = exports.AuthApiError = exports.isAuthError = exports.AuthError = void 0; | ||
exports.isAuthWeakPasswordError = exports.AuthWeakPasswordError = exports.isAuthRetryableFetchError = exports.AuthRetryableFetchError = exports.AuthPKCEGrantCodeExchangeError = exports.isAuthImplicitGrantRedirectError = exports.AuthImplicitGrantRedirectError = exports.AuthInvalidCredentialsError = exports.AuthInvalidTokenResponseError = exports.isAuthSessionMissingError = exports.AuthSessionMissingError = exports.CustomAuthError = exports.AuthUnknownError = exports.isAuthApiError = exports.AuthApiError = exports.isAuthError = exports.AuthError = void 0; | ||
class AuthError extends Error { | ||
@@ -85,2 +85,6 @@ constructor(message, status, code) { | ||
exports.AuthImplicitGrantRedirectError = AuthImplicitGrantRedirectError; | ||
function isAuthImplicitGrantRedirectError(error) { | ||
return isAuthError(error) && error.name === 'AuthImplicitGrantRedirectError'; | ||
} | ||
exports.isAuthImplicitGrantRedirectError = isAuthImplicitGrantRedirectError; | ||
class AuthPKCEGrantCodeExchangeError extends CustomAuthError { | ||
@@ -87,0 +91,0 @@ constructor(message, details = null) { |
@@ -143,3 +143,3 @@ "use strict"; | ||
const currentOperation = Promise.race([ | ||
previousOperation.catch((e) => { | ||
previousOperation.catch(() => { | ||
// ignore error of previous operation that we're waiting to finish | ||
@@ -146,0 +146,0 @@ return null; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.66.1-rc.2"; | ||
export declare const version = "2.66.1-rc.3"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = void 0; | ||
exports.version = '2.66.1-rc.2'; | ||
exports.version = '2.66.1-rc.3'; | ||
//# sourceMappingURL=version.js.map |
@@ -60,2 +60,3 @@ import { WeakPasswordReasons } from './types'; | ||
} | ||
export declare function isAuthImplicitGrantRedirectError(error: any): error is AuthImplicitGrantRedirectError; | ||
export declare class AuthPKCEGrantCodeExchangeError extends CustomAuthError { | ||
@@ -62,0 +63,0 @@ details: { |
@@ -71,2 +71,5 @@ export class AuthError extends Error { | ||
} | ||
export function isAuthImplicitGrantRedirectError(error) { | ||
return isAuthError(error) && error.name === 'AuthImplicitGrantRedirectError'; | ||
} | ||
export class AuthPKCEGrantCodeExchangeError extends CustomAuthError { | ||
@@ -73,0 +76,0 @@ constructor(message, details = null) { |
@@ -136,3 +136,3 @@ import { supportsLocalStorage } from './helpers'; | ||
const currentOperation = Promise.race([ | ||
previousOperation.catch((e) => { | ||
previousOperation.catch(() => { | ||
// ignore error of previous operation that we're waiting to finish | ||
@@ -139,0 +139,0 @@ return null; |
@@ -1,2 +0,2 @@ | ||
export declare const version = "2.66.1-rc.2"; | ||
export declare const version = "2.66.1-rc.3"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export const version = '2.66.1-rc.2'; | ||
export const version = '2.66.1-rc.3'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@supabase/gotrue-js", | ||
"version": "2.66.1-rc.2", | ||
"version": "2.66.1-rc.3", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Official client library for Supabase Auth", |
@@ -105,2 +105,8 @@ import { WeakPasswordReasons } from './types' | ||
export function isAuthImplicitGrantRedirectError( | ||
error: any | ||
): error is AuthImplicitGrantRedirectError { | ||
return isAuthError(error) && error.name === 'AuthImplicitGrantRedirectError' | ||
} | ||
export class AuthPKCEGrantCodeExchangeError extends CustomAuthError { | ||
@@ -107,0 +113,0 @@ details: { error: string; code: string } | null = null |
@@ -171,3 +171,3 @@ import { supportsLocalStorage } from './helpers' | ||
[ | ||
previousOperation.catch((e: any) => { | ||
previousOperation.catch(() => { | ||
// ignore error of previous operation that we're waiting to finish | ||
@@ -174,0 +174,0 @@ return null |
@@ -1,1 +0,1 @@ | ||
export const version = '2.66.1-rc.2' | ||
export const version = '2.66.1-rc.3' |
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
827388
14741