diff --git a/api/routes/security.py b/api/routes/security.py index 141c76d..215ad82 100644 --- a/api/routes/security.py +++ b/api/routes/security.py @@ -257,7 +257,7 @@ async def redirect_callback(code: str, state: Optional[str] = None): user = await get_user(user_data['sub']) if user is None: - user = await create_user(user_data['sub'], user_data.get('name', ''), user_data.get('email', '')) + user = await create_user(user_data['sub'], user_data.get('given_name', '') + user_data.get('family_name', ''), user_data.get('email', '')) access_token = create_access_token( data={