@digilogiclabs/platform-core 1.27.0 → 1.27.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/auth.d.mts +2 -2
- package/dist/auth.d.ts +2 -2
- package/dist/auth.js +3 -2
- package/dist/auth.js.map +1 -1
- package/dist/auth.mjs +3 -2
- package/dist/auth.mjs.map +1 -1
- package/dist/{env-BJWliXSO.d.mts → env-Cgwf8ZG2.d.mts} +2 -1
- package/dist/{env-BJWliXSO.d.ts → env-Cgwf8ZG2.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18807,10 +18807,11 @@ function buildKeycloakCallbacks(config) {
|
|
|
18807
18807
|
async jwt({
|
|
18808
18808
|
token,
|
|
18809
18809
|
user,
|
|
18810
|
-
account
|
|
18810
|
+
account,
|
|
18811
|
+
profile
|
|
18811
18812
|
}) {
|
|
18812
18813
|
if (user) {
|
|
18813
|
-
token.id = token.sub ?? user.id;
|
|
18814
|
+
token.id = profile?.sub ?? account?.providerAccountId ?? token.sub ?? user.id;
|
|
18814
18815
|
}
|
|
18815
18816
|
if (account?.provider === "keycloak") {
|
|
18816
18817
|
token.accessToken = account.access_token;
|