From c33fc0e0ec3d96aa3197f1512a64f3c4006caac8 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Mon, 16 Jan 2023 23:23:55 +0530 Subject: [PATCH] fix: oauth key error --- apiserver/plane/api/views/oauth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/api/views/oauth.py b/apiserver/plane/api/views/oauth.py index ac8b55c7e..bcebfb294 100644 --- a/apiserver/plane/api/views/oauth.py +++ b/apiserver/plane/api/views/oauth.py @@ -223,8 +223,8 @@ class OauthEndpoint(BaseAPIView): username=username, email=email, mobile_number=mobile_number, - first_name=data["first_name"], - last_name=data["last_name"], + first_name=data.get("first_name", ""), + last_name=data.get("last_name", ""), is_email_verified=email_verified, is_password_autoset=True, )