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:
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: