@digilogiclabs/platform-core 1.28.1 → 1.29.0

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.js CHANGED
@@ -19469,6 +19469,10 @@ function buildKeycloakCallbacks(config) {
19469
19469
  */
19470
19470
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
19471
19471
  async session({ session, token }) {
19472
+ if (token.error === "RefreshTokenError") {
19473
+ const { user: _revoked, accessToken: _stale, ...rest } = session;
19474
+ return { ...rest, idToken: token.idToken, error: token.error };
19475
+ }
19472
19476
  const user = session.user;
19473
19477
  if (user) {
19474
19478
  user.id = token.id || token.sub;