API status views
API user views
fonzie.views.user.
UserSessionView
(**kwargs)¶Bases: rest_framework.views.APIView
API endpoint to get the authenticated user information.
get
(request, version, format=None)¶Retrieve logged in user, then generate a JWT with a claim containing its username (unique identifier) and its email. The token’s expiration can be changed through the setting ACCESS_TOKEN_LIFETIME (default 5 minutes).
permission_classes
= [<class 'rest_framework.permissions.IsAuthenticated'>]¶