add icon for user

This commit is contained in:
jaehwang committed 2026-09-16 13:04:49 +09:00
1 parent ef08b9f433
commit 78cf43d7ff
7 files changed
+72 -36

No files matched your search

+4 -2
View File
@@ -38,10 +38,11 @@ class GoogleTokenInvalid(RuntimeError):
class GoogleAccount:
def __init__(self, sub: str, email: str, name: str):
def __init__(self, sub: str, email: str, name: str, picture: str):
self.sub = sub
self.email = email
self.name = name
self.picture = picture
def is_enabled() -> bool:
@@ -113,4 +114,5 @@ async def verify_id_token(credential: str) -> GoogleAccount:
raise GoogleTokenInvalid("이메일이 인증되지 않은 계정입니다")
return GoogleAccount(sub=sub, email=str(claims.get("email") or ""),
name=str(claims.get("name") or ""))
name=str(claims.get("name") or ""),
picture=str(claims.get("picture") or ""))