Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Handling of refresh token on DRF #10

Open
@umerjaved178

Description

@umerjaved178

Hey Mahieyin,

Thanks for your efforts to the community!

I am wondering why are you handling refreshing of access token on DRF while we can easily do this with next-auth in [...nextauth].js file.
https://next-auth.js.org/tutorials/refresh-token-rotation

Current:
You are making a call to DRF to get a refresh token

Expected:
We are already receiving refresh token on the first request, why you are not utilizing it instead you are making it from DRF at line 76

const { access_token, refresh_token } = response.data;

Looking forward to your reply 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions