decane-connect-kit 2.7.0 → 2.7.1
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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -970,6 +970,15 @@ interface SocialAuthState {
|
|
|
970
970
|
tron?: string;
|
|
971
971
|
} | null;
|
|
972
972
|
isNewUser: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* Who the provider said the user is — `{ name?, email?, picture? }`.
|
|
975
|
+
*
|
|
976
|
+
* `null` until a sign-in returns one, and stays null for email sign-in and
|
|
977
|
+
* for providers the user withheld a profile from. It is not persisted across
|
|
978
|
+
* reloads: the backend stores no profile, so a restored session has an
|
|
979
|
+
* address but no name. Copy it somewhere durable if you need it to survive.
|
|
980
|
+
*/
|
|
981
|
+
profile: AuthProfile | null;
|
|
973
982
|
isUnlocked: boolean;
|
|
974
983
|
sessionExpiresAt: number | null;
|
|
975
984
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -970,6 +970,15 @@ interface SocialAuthState {
|
|
|
970
970
|
tron?: string;
|
|
971
971
|
} | null;
|
|
972
972
|
isNewUser: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* Who the provider said the user is — `{ name?, email?, picture? }`.
|
|
975
|
+
*
|
|
976
|
+
* `null` until a sign-in returns one, and stays null for email sign-in and
|
|
977
|
+
* for providers the user withheld a profile from. It is not persisted across
|
|
978
|
+
* reloads: the backend stores no profile, so a restored session has an
|
|
979
|
+
* address but no name. Copy it somewhere durable if you need it to survive.
|
|
980
|
+
*/
|
|
981
|
+
profile: AuthProfile | null;
|
|
973
982
|
isUnlocked: boolean;
|
|
974
983
|
sessionExpiresAt: number | null;
|
|
975
984
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6168,6 +6168,7 @@ function WalletStatusOverlay({
|
|
|
6168
6168
|
var DEFAULT_SOCIAL = {
|
|
6169
6169
|
addresses: null,
|
|
6170
6170
|
isNewUser: false,
|
|
6171
|
+
profile: null,
|
|
6171
6172
|
isUnlocked: false,
|
|
6172
6173
|
sessionExpiresAt: null,
|
|
6173
6174
|
needsReconnect: false,
|
|
@@ -6281,6 +6282,7 @@ function DecaneKit({ config, children }) {
|
|
|
6281
6282
|
setSocialAuth({
|
|
6282
6283
|
addresses: result.addresses,
|
|
6283
6284
|
isNewUser: result.isNewUser,
|
|
6285
|
+
profile: result.profile ?? null,
|
|
6284
6286
|
isUnlocked: sdk?.isUnlocked() ?? false,
|
|
6285
6287
|
sessionExpiresAt: sdk?.sessionExpiresAt() ?? null,
|
|
6286
6288
|
needsReconnect: false,
|