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

@supabase/gotrue-js

Package Overview
Dependencies
Maintainers
7
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@supabase/gotrue-js - npm Package Compare versions

Comparing version 2.59.0 to 2.60.0

30

dist/main/GoTrueClient.d.ts

@@ -5,3 +5,3 @@ import GoTrueAdminApi from './GoTrueAdminApi';

import { Deferred } from './lib/helpers';
import type { AuthChangeEvent, AuthResponse, AuthTokenResponse, AuthOtpResponse, CallRefreshTokenResult, GoTrueClientOptions, InitializeResult, OAuthResponse, SSOResponse, Session, SignInWithIdTokenCredentials, SignInWithOAuthCredentials, SignInWithPasswordCredentials, SignInWithPasswordlessCredentials, SignUpWithPasswordCredentials, SignInWithSSO, SignOut, Subscription, SupportedStorage, UserAttributes, UserResponse, VerifyOtpParams, GoTrueMFAApi, ResendParams, AuthFlowType, LockFunc } from './lib/types';
import type { AuthChangeEvent, AuthResponse, AuthTokenResponse, AuthOtpResponse, CallRefreshTokenResult, GoTrueClientOptions, InitializeResult, OAuthResponse, SSOResponse, Session, SignInWithIdTokenCredentials, SignInWithOAuthCredentials, SignInWithPasswordCredentials, SignInWithPasswordlessCredentials, SignUpWithPasswordCredentials, SignInWithSSO, SignOut, Subscription, SupportedStorage, UserAttributes, UserResponse, VerifyOtpParams, GoTrueMFAApi, ResendParams, AuthFlowType, LockFunc, UserIdentity } from './lib/types';
export default class GoTrueClient {

@@ -292,2 +292,29 @@ private static nextInstanceID;

/**
* Gets all the identities linked to a user.
*/
getUserIdentities(): Promise<{
data: {
identities: UserIdentity[];
};
error: null;
} | {
data: null;
error: AuthError;
}>;
/**
* Links an oauth identity to an existing user.
* This method supports the PKCE flow.
*/
linkIdentity(credentials: SignInWithOAuthCredentials): Promise<OAuthResponse>;
/**
* Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
*/
unlinkIdentity(identity: UserIdentity): Promise<{
data: {};
error: null;
} | {
data: null;
error: AuthError;
}>;
/**
* Generates a new JWT.

@@ -311,3 +338,2 @@ * @param refreshToken A valid refresh token that was returned on login.

private _saveSession;
private _persistSession;
private _removeSession;

@@ -314,0 +340,0 @@ /**

@@ -181,2 +181,3 @@ import { AuthError } from './errors';

};
identity_id: string;
provider: string;

@@ -183,0 +184,0 @@ created_at?: string;

2

dist/main/lib/version.d.ts

@@ -1,2 +0,2 @@

export declare const version = "2.59.0";
export declare const version = "2.60.0";
//# sourceMappingURL=version.d.ts.map

@@ -5,3 +5,3 @@ "use strict";

// Generated by genversion.
exports.version = '2.59.0';
exports.version = '2.60.0';
//# sourceMappingURL=version.js.map

@@ -5,3 +5,3 @@ import GoTrueAdminApi from './GoTrueAdminApi';

import { Deferred } from './lib/helpers';
import type { AuthChangeEvent, AuthResponse, AuthTokenResponse, AuthOtpResponse, CallRefreshTokenResult, GoTrueClientOptions, InitializeResult, OAuthResponse, SSOResponse, Session, SignInWithIdTokenCredentials, SignInWithOAuthCredentials, SignInWithPasswordCredentials, SignInWithPasswordlessCredentials, SignUpWithPasswordCredentials, SignInWithSSO, SignOut, Subscription, SupportedStorage, UserAttributes, UserResponse, VerifyOtpParams, GoTrueMFAApi, ResendParams, AuthFlowType, LockFunc } from './lib/types';
import type { AuthChangeEvent, AuthResponse, AuthTokenResponse, AuthOtpResponse, CallRefreshTokenResult, GoTrueClientOptions, InitializeResult, OAuthResponse, SSOResponse, Session, SignInWithIdTokenCredentials, SignInWithOAuthCredentials, SignInWithPasswordCredentials, SignInWithPasswordlessCredentials, SignUpWithPasswordCredentials, SignInWithSSO, SignOut, Subscription, SupportedStorage, UserAttributes, UserResponse, VerifyOtpParams, GoTrueMFAApi, ResendParams, AuthFlowType, LockFunc, UserIdentity } from './lib/types';
export default class GoTrueClient {

@@ -292,2 +292,29 @@ private static nextInstanceID;

/**
* Gets all the identities linked to a user.
*/
getUserIdentities(): Promise<{
data: {
identities: UserIdentity[];
};
error: null;
} | {
data: null;
error: AuthError;
}>;
/**
* Links an oauth identity to an existing user.
* This method supports the PKCE flow.
*/
linkIdentity(credentials: SignInWithOAuthCredentials): Promise<OAuthResponse>;
/**
* Unlinks an identity from a user by deleting it. The user will no longer be able to sign in with that identity once it's unlinked.
*/
unlinkIdentity(identity: UserIdentity): Promise<{
data: {};
error: null;
} | {
data: null;
error: AuthError;
}>;
/**
* Generates a new JWT.

@@ -311,3 +338,2 @@ * @param refreshToken A valid refresh token that was returned on login.

private _saveSession;
private _persistSession;
private _removeSession;

@@ -314,0 +340,0 @@ /**

@@ -181,2 +181,3 @@ import { AuthError } from './errors';

};
identity_id: string;
provider: string;

@@ -183,0 +184,0 @@ created_at?: string;

@@ -1,2 +0,2 @@

export declare const version = "2.59.0";
export declare const version = "2.60.0";
//# sourceMappingURL=version.d.ts.map
// Generated by genversion.
export const version = '2.59.0';
export const version = '2.60.0';
//# sourceMappingURL=version.js.map
{
"name": "@supabase/gotrue-js",
"version": "2.59.0",
"version": "2.60.0",
"description": "Isomorphic GoTrue client",

@@ -5,0 +5,0 @@ "keywords": [

@@ -236,2 +236,3 @@ import { AuthError } from './errors'

}
identity_id: string
provider: string

@@ -238,0 +239,0 @@ created_at?: string

// Generated by genversion.
export const version = '2.59.0'
export const version = '2.60.0'

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 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 too big to display

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