Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh token action not triggered from authenticated request saga #18

Open
mohsinxmushtaq opened this issue Oct 12, 2020 · 0 comments
Open

Comments

@mohsinxmushtaq
Copy link

I have added the library in my react native project login and logout are working great and can also make authenticated calls from using the example saga, but having problem when I try to call and the token is expired it seems the following code is not triggered

 if (isTokenExpired) {
    const { refreshError, tokenRefreshed } = yield race({
      refreshError: take(AUTH_INVALID_ERROR),
      tokenRefreshed: take(AUTH_REFRESH_SUCCESS),
    });

Im new to react native so may be im doing something wrong, would be great if I can see how to debug such problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant