@supabase/gotrue-js
Advanced tools
Comparing version 2.59.0 to 2.60.0
@@ -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 |
@@ -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
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
744657
13420