We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Token.for_user
1 parent fc03667 commit c791e98Copy full SHA for c791e98
rest_framework_simplejwt/tokens.py
@@ -197,7 +197,7 @@ def check_exp(
197
raise TokenError(format_lazy(_("Token '{}' claim has expired"), claim))
198
199
@classmethod
200
- def for_user(cls, user: AuthUser) -> "Token":
+ def for_user(cls: Type[T], user: AuthUser) -> T:
201
"""
202
Returns an authorization token for the given user that will be provided
203
after authenticating the user's credentials.
0 commit comments