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

fix: No callback when automatic refresh does not work. #120

Open
josefwilhelm opened this issue Aug 28, 2024 · 2 comments
Open

fix: No callback when automatic refresh does not work. #120

josefwilhelm opened this issue Aug 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@josefwilhelm
Copy link

Description

The automatic refresh of the package works perfectly. But I wanted to test what happens if it fails, and I want to react on a failed refresh in the app.

So, I see the refresh is failing, as I can see the network request with a 400 in the Network Profiler.

But I want to see an error/callback somewhere. But there is no log, or anything. And the onError from the code snippet below does also not trigger.

Steps To Reproduce

    oidcManager.userChanges().listen(
      (event) async {
        print('===== oidc user changes =====');
      },
      onError: (error) {
        print('===== oidc user changes error =====');
      },
      onDone: () {
        print('===== oidc user changes done =====');
      },
    );

Expected Behavior

Callback when a refresh fails.

@josefwilhelm josefwilhelm added the bug Something isn't working label Aug 28, 2024
@ahmednfwela
Copy link
Member

This can be added as a subclass to OidcEvent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@josefwilhelm @ahmednfwela and others