Skip to content

Commit

Permalink
Refactor: Remove unused 'image' field from access token generation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanLYJ committed Oct 10, 2024
1 parent 4b8acc3 commit 1245386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwtauth/utils/token_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def generate_access_token(user):
"iat": timezone.now(),
"nickname": user.nickname,
"email": user.email,
"image": user.image,
# "image": user.image,
"exp": timezone.now() + timedelta(minutes=30),
}
return jwt.encode(payload, settings.SECRET_KEY, algorithm="HS256")
Expand Down

0 comments on commit 1245386

Please sign in to comment.