PedroBern / django-graphql-auth

Django registration and authentication with GraphQL.
https://django-graphql-auth.readthedocs.io/en/latest/
MIT License
329 stars 106 forks source link

Fix typo in function get_token_payload #128

Closed BurnySc2 closed 2 years ago

BurnySc2 commented 2 years ago

This changes the function name from get_token_paylod to get_token_payload.

I added another function get_token_paylod with a deprecation warning (it warns only once if called multiple times) which simply calls and returns the result of get_token_payload.

Alternatively one could assign get_token_paylod = get_token_payload but this wouldn't trigger a deprecation warning.