@privy-io/react-auth 1.65.0 → 1.65.1-beta-20240521193847
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +247 -247
- package/dist/index.d.ts +13 -1
- package/dist/index.js +246 -246
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -429,6 +429,7 @@ declare enum PrivyErrorCode {
|
|
|
429
429
|
EMBEDDED_WALLET_RECOVERY_ALREADY_EXISTS = "embedded_wallet_recovery_already_exists",
|
|
430
430
|
TRANSACTION_FAILURE = "transaction_failure",
|
|
431
431
|
UNSUPPORTED_CHAIN_ID = "unsupported_chain_id",
|
|
432
|
+
NOT_SUPPORTED = "not_supported",
|
|
432
433
|
CAPTCHA_TIMEOUT = "captcha_timeout",
|
|
433
434
|
INVALID_MESSAGE = "invalid_message",
|
|
434
435
|
UNABLE_TO_SIGN = "unable_to_sign",
|
|
@@ -799,6 +800,13 @@ interface GetCurrentUserResponse {
|
|
|
799
800
|
linked_accounts: LinkedAccountsResponseType;
|
|
800
801
|
mfa_methods: LinkedMfaMethodsResponseType;
|
|
801
802
|
has_accepted_terms: boolean;
|
|
803
|
+
oauth_provider_tokens?: {
|
|
804
|
+
provider: string;
|
|
805
|
+
access_token: string;
|
|
806
|
+
access_token_expires_in_seconds?: number;
|
|
807
|
+
refresh_token?: string;
|
|
808
|
+
scopes?: string[];
|
|
809
|
+
};
|
|
802
810
|
}
|
|
803
811
|
|
|
804
812
|
interface DefaultsType {
|
|
@@ -1002,7 +1010,10 @@ declare class PrivyClient {
|
|
|
1002
1010
|
isNewUser?: boolean | undefined;
|
|
1003
1011
|
oAuthProviderTokens?: OAuthProviderTokens | undefined;
|
|
1004
1012
|
}>;
|
|
1005
|
-
link(): Promise<
|
|
1013
|
+
link(): Promise<{
|
|
1014
|
+
user: User | null;
|
|
1015
|
+
oAuthProviderTokens?: OAuthProviderTokens | undefined;
|
|
1016
|
+
}>;
|
|
1006
1017
|
logout(): Promise<void>;
|
|
1007
1018
|
startAuthFlow<T extends AuthFlow>(authFlow: T): T;
|
|
1008
1019
|
initMfaSmsVerification(): Promise<void>;
|
|
@@ -1027,6 +1038,7 @@ declare class PrivyClient {
|
|
|
1027
1038
|
unlinkWallet(address: string): Promise<User>;
|
|
1028
1039
|
unlinkOAuth(provider: OAuthProviderType, subject: string): Promise<User>;
|
|
1029
1040
|
unlinkFarcaster(fid: number): Promise<User>;
|
|
1041
|
+
unlinkTelegram(telegramUserId: string): Promise<User>;
|
|
1030
1042
|
unlinkPasskey(credentialId: string): Promise<User>;
|
|
1031
1043
|
createAnalyticsEvent({ eventName, payload, timestamp, options, }: {
|
|
1032
1044
|
eventName: string;
|