@redzone/taunt-logins-ui-react 0.0.26 → 0.0.27
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/cjs/index.cjs +3 -2
- package/dist/es/index.js +3 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -656,8 +656,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
656
656
|
}
|
|
657
657
|
setIsLoading(true);
|
|
658
658
|
try {
|
|
659
|
-
await taunt.refresh(token);
|
|
660
|
-
|
|
659
|
+
const details = await taunt.refresh(token);
|
|
660
|
+
await refreshUser();
|
|
661
|
+
return details;
|
|
661
662
|
} catch (error) {
|
|
662
663
|
console.error("Failed to refresh token:", error);
|
|
663
664
|
if (autoLogoutOnError) {
|
package/dist/es/index.js
CHANGED
|
@@ -656,8 +656,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
656
656
|
}
|
|
657
657
|
setIsLoading(true);
|
|
658
658
|
try {
|
|
659
|
-
await taunt.refresh(token);
|
|
660
|
-
|
|
659
|
+
const details = await taunt.refresh(token);
|
|
660
|
+
await refreshUser();
|
|
661
|
+
return details;
|
|
661
662
|
} catch (error) {
|
|
662
663
|
console.error("Failed to refresh token:", error);
|
|
663
664
|
if (autoLogoutOnError) {
|