Skip to content

Refresh token action not triggered from authenticated request saga #18

@mohsinxmushtaq

Description

@mohsinxmushtaq

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions