When a user with a deleted account tries to access the website with a JWT that is still valid, it causes an error 500. This checks if the user with the given pk exists, and if not, it will return the api_settings.JWT_SECRET_KEY instead of the deleted user's secret key
When a user with a deleted account tries to access the website with a JWT that is still valid, it causes an error 500. This checks if the user with the given pk exists, and if not, it will return the
api_settings.JWT_SECRET_KEY
instead of the deleted user's secret key