jeremy 4 mesiacov pred
rodič
commit
998ed071f1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      backend/src/routes/auth.js

+ 1 - 1
backend/src/routes/auth.js

@@ -91,7 +91,7 @@ router.get('/oidc/callback', async (req, res) => {
     const claims = tokenSet.claims();
     const sub = claims.sub;
     const email = claims.email;
-    const name = claims.name || claims.preferred_username || email;
+    const name = claims.name || claims.preferred_username || email || `user_${sub}`;
     const firstName = claims.given_name || null;
     const lastName = claims.family_name || null;