@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/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;