MarisiaS / SMM

0 stars 0 forks source link

BE - Use CustomUser in CustomTokenRefreshSerializer #81

Closed viriponce closed 4 months ago

viriponce commented 4 months ago

This PR fixes #80

Implementation

1. backend/api/serializers/CustomTokenRefreshSerializer.py

The CustomTokenRefreshSerializer was originally implemented to use the default User model provided by django but a custom user model was implemented for our project by PR #35. The CustomTokenRefreshSerializer should now import the CustomUser model and use it.

Swagger

The endpoint /api/login/refresh/ is now working and generating a new access token and refresh token when a request with is received:

Screenshot 2024-04-30 at 10 06 44 PM