Skip to content

Commit 6916ffe

Browse files
changed 'access' to 'token' for google_auth
1 parent 6063657 commit 6916ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/v1/auth/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def jwt_login(*, user: object) -> str:
288288

289289
# get JWTs for user
290290
refresh = RefreshToken.for_user(user)
291-
access = str(refresh.access_token)
291+
token = str(refresh.access_token)
292292
refresh = str(refresh)
293293

294294
# create API token if none exists
@@ -307,7 +307,7 @@ def jwt_login(*, user: object) -> str:
307307

308308
# building params for redirect
309309
param_string = str(
310-
'?access='+str(access)+'&refresh='+str(refresh)+
310+
'?token='+str(token)+'&refresh='+str(refresh)+
311311
'&username='+str(user.username)+'&id='+str(user.id)+
312312
'&email='+str(user.email)+'&is_active='+str(is_active)+
313313
'&created='+str(user.date_joined)+'&updated='+str(timezone.now())+

0 commit comments

Comments
 (0)