@privy-io/react-auth 1.3.1-beta.1 → 1.3.1-beta.3
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/index.d.ts +9 -9
- package/dist/index.js +61 -61
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,13 +54,13 @@ interface EmailWithMetadata extends LinkMetadata, Email {
|
|
|
54
54
|
interface WalletWithMetadata extends LinkMetadata, Wallet {
|
|
55
55
|
type: 'wallet';
|
|
56
56
|
}
|
|
57
|
-
interface
|
|
57
|
+
interface GoogleOAuthWithMetadata extends LinkMetadata, Google {
|
|
58
58
|
type: 'google_oauth';
|
|
59
59
|
}
|
|
60
|
-
interface
|
|
60
|
+
interface TwitterOAuthWithMetadata extends LinkMetadata, Twitter {
|
|
61
61
|
type: 'twitter_oauth';
|
|
62
62
|
}
|
|
63
|
-
interface
|
|
63
|
+
interface DiscordOAuthWithMetadata extends LinkMetadata, Discord {
|
|
64
64
|
type: 'discord_oauth';
|
|
65
65
|
}
|
|
66
66
|
interface User {
|
|
@@ -81,7 +81,7 @@ interface User {
|
|
|
81
81
|
discord?: Discord;
|
|
82
82
|
/** The list of accounts associated with this user. Accounts contain additional metadata
|
|
83
83
|
* about the account and its linking that may be necessary for advanced use cases. */
|
|
84
|
-
linkedAccounts: Array<WalletWithMetadata | EmailWithMetadata |
|
|
84
|
+
linkedAccounts: Array<WalletWithMetadata | EmailWithMetadata | GoogleOAuthWithMetadata | TwitterOAuthWithMetadata | DiscordOAuthWithMetadata>;
|
|
85
85
|
}
|
|
86
86
|
interface AppSettings {
|
|
87
87
|
id?: string;
|
|
@@ -125,28 +125,28 @@ interface ResponseEthereumAccount {
|
|
|
125
125
|
chain_type: 'ethereum';
|
|
126
126
|
verified_at: number;
|
|
127
127
|
}
|
|
128
|
-
interface
|
|
128
|
+
interface ResponseOAuthGoogle {
|
|
129
129
|
type: 'google_oauth';
|
|
130
130
|
subject: string;
|
|
131
131
|
email: string;
|
|
132
132
|
name: string | null;
|
|
133
133
|
verified_at: number;
|
|
134
134
|
}
|
|
135
|
-
interface
|
|
135
|
+
interface ResponseOAuthTwitter {
|
|
136
136
|
type: 'twitter_oauth';
|
|
137
137
|
subject: string;
|
|
138
138
|
username: string | null;
|
|
139
139
|
name: string | null;
|
|
140
140
|
verified_at: number;
|
|
141
141
|
}
|
|
142
|
-
interface
|
|
142
|
+
interface ResponseOAuthDiscord {
|
|
143
143
|
type: 'discord_oauth';
|
|
144
144
|
subject: string;
|
|
145
145
|
username: string | null;
|
|
146
146
|
email: string | null;
|
|
147
147
|
verified_at: number;
|
|
148
148
|
}
|
|
149
|
-
declare type LinkedAccountsType = Array<ResponseEmailAccount | ResponseEthereumAccount |
|
|
149
|
+
declare type LinkedAccountsType = Array<ResponseEmailAccount | ResponseEthereumAccount | ResponseOAuthGoogle | ResponseOAuthTwitter | ResponseOAuthDiscord>;
|
|
150
150
|
interface GetCurrentUserResponse {
|
|
151
151
|
id: string;
|
|
152
152
|
created_at: number;
|
|
@@ -452,4 +452,4 @@ declare class PrivySessionError extends PrivyError {
|
|
|
452
452
|
constructor(message: string, cause?: unknown);
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
export { Discord,
|
|
455
|
+
export { Discord, DiscordOAuthWithMetadata, Email, EmailWithMetadata, Google, GoogleOAuthWithMetadata, PrivyApiError, PrivyClient, PrivyClientError, PrivyError, PrivyProvider, PrivySessionError, Twitter, TwitterOAuthWithMetadata, User, Wallet, WalletWithMetadata, usePrivy };
|