Closed abdullah-alnahas closed 6 months ago
I have a few questions about our current implementation and some potential improvements:
refresh_token
endpoint, should we expect the refresh_token in the authorization header? Currently, it's expected in the POST request body.
This pull request enhances the user experience by implementing refresh tokens with rotation. With this new approach, users are no longer required to log out and log back in when their login token expires. Instead, the front-end seamlessly handles refreshing the login token using the updated
refresh_token
API.Here's an overview of the new authentication workflow:
refresh_token
endpoint with a valid refresh token.Please note that the refresh token is long-lived, allowing users to maintain their sessions without the need to frequently re-authenticate. This new workflow, allows a smoother user experience while maintaining a secure authentication process.