MarisiaS / SMM

0 stars 0 forks source link

BE - Fix: Update user model in token refresh serializer #80

Closed viriponce closed 4 months ago

viriponce commented 4 months ago

The CustomTokenRefreshSerializer uses the default django user model from auth but later, a custom user model was introduced by PR #35 called CustomUser in models.py.

Because of this, when the endpoint api/login/refresh is returning a Server Error (500 status code).

Update the user model in the CustomTokenRefreshSerializer to use CustomUser instead of User.