jeremy 4 달 전
부모
커밋
998ed071f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;