title: DRF Simple JWT does not log in user?
body: <p>I try to use <code>simpleJWT</code> in my project. I have created a <code>CustomUser</code> in my profiles app and later added to <code>settings.py</code></p>
  
  <pre><code>AUTH_USER_MODEL = "profiles.User"
  # django-allauth
  ACCOUNT_EMAIL_VERIFICATION = "none"
  ACCOUNT_EMAIL_REQUIRED = (True)
  CORS_ORIGIN_ALLOW_ALL = True
  #CSRF_COOKIE_NAME = "csrftoken"
  CORS_ALLOW_CREDENTIALS = True
  REST_FRAMEWORK = {
  
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework_simplejwt.authentication.JWTAuthentication',
  
      ),
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly',
          'rest_framework.permissions.AllowAny',
  
      ),
  }
  REST_AUTH_SERIALIZERS = {
      'PASSWORD_RESET_SERIALIZER':
          'yogavidya.apps.profiles.api.serializers.PasswordResetSerializer',
      'USER_DETAILS_SERIALIZER':
          'yogavidya.apps.profiles.api.serializers.UserSerializer',
  }
  ​
  ACCOUNT_AUTHENTICATION_METHOD = 'username'
  ACCOUNT_EMAIL_REQUIRED = True
  ACCOUNT_USERNAME_REQUIRED = True
  ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
  OLD_PASSWORD_FIELD_ENABLED = True
  LOGOUT_ON_PASSWORD_CHANGE = False
  ​
  AUTHENTICATION_BACKENDS = (
   # Needed to login by username in Django admin, regardless of `allauth`
   "django.contrib.auth.backends.ModelBackend",
   # `allauth` specific authentication methods, such as login by e-mail
   "allauth.account.auth_backends.AuthenticationBackend",
   'yogavidya.emailbackend.EmailOrUsernameModelBackend',
  )
  SIMPLE_JWT = {
      'ACCESS_TOKEN_LIFETIME': timedelta(minutes=5),
      'REFRESH_TOKEN_LIFETIME': timedelta(days=1),
      'ROTATE_REFRESH_TOKENS': True,
      'BLACKLIST_AFTER_ROTATION': True,
  ​
      'ALGORITHM': 'HS256',
      'SIGNING_KEY': SECRET_KEY,
      'VERIFYING_KEY': None,
      'AUDIENCE': None,
      'ISSUER': None,
  ​
      'AUTH_HEADER_TYPES': ('Bearer',),
      'USER_ID_FIELD': 'id',
      'USER_ID_CLAIM': 'user_id',
  ​
      'AUTH_TOKEN_CLASSES': ('rest_framework_simplejwt.tokens.AccessToken',),
      'TOKEN_TYPE_CLAIM': 'token_type',
  ​
      'JTI_CLAIM': 'jti',
  ​
      'SLIDING_TOKEN_REFRESH_EXP_CLAIM': 'refresh_exp',
      'SLIDING_TOKEN_LIFETIME': timedelta(minutes=5),
      'SLIDING_TOKEN_REFRESH_LIFETIME': timedelta(days=1),
  }
  </code></pre>
  
  <p>When I try to login using Django REST Framework view, I get an answer but no user is logged in.</p>
  
  <pre><code>HTTP 200 OK
  Allow: POST, OPTIONS
  Content-Type: application/json
  Vary: Accept
  
  {
      "refresh": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTU5MDI2Njk2OCwianRpIjoiODhjN2FmOWZhZDBlNGIyYWFiYTRlMDA3YmVjNjY0YzciLCJ1c2VyX2lkIjoxfQ.YSluUaCU0r5WBlLmKmju1_HqrQjAxEDj5jONiv0U_mA",
      "access": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNTkwMTgwODY4LCJqdGkiOiJlNjI1ZjI5NjJjYTQ0OGM3YWQ2MWM2OTZhMWU5NWRkYyIsInVzZXJfaWQiOjF9.1A1ZTcxXRMQj5cBG631dwVeFQqG1FJVcKbjlrxRCcwE"
  }
  </code></pre>
  
  <p>I have read the docs and in my opinion after placing credentials there must be a logged in user. How can I fix this behaviour?
  Thanks</p>