Skip to content

Commit

Permalink
Merge branch 'master' of ssh://github.com/flavors/django-graphql-jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
mongkok committed Apr 4, 2020
2 parents 1853a86 + 643bf5f commit dd08b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graphql_jwt/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def resolve(self, next, root, info, **kwargs):
elif hasattr(context, 'user'):
if hasattr(context, 'session'):
context.user = get_user(context)
self.cached_authentication.insert(info.path, context.user)
else:
context.user = AnonymousUser()

Expand Down

0 comments on commit dd08b8d

Please sign in to comment.