@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/auth.js +4 -0
- package/dist/auth.js.map +1 -1
- package/dist/auth.mjs +4 -0
- package/dist/auth.mjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -19123,6 +19123,10 @@ function buildKeycloakCallbacks(config) {
|
|
|
19123
19123
|
*/
|
|
19124
19124
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19125
19125
|
async session({ session, token }) {
|
|
19126
|
+
if (token.error === "RefreshTokenError") {
|
|
19127
|
+
const { user: _revoked, accessToken: _stale, ...rest } = session;
|
|
19128
|
+
return { ...rest, idToken: token.idToken, error: token.error };
|
|
19129
|
+
}
|
|
19126
19130
|
const user = session.user;
|
|
19127
19131
|
if (user) {
|
|
19128
19132
|
user.id = token.id || token.sub;
|