Skip to content

Too frequent token refreshing #9

@bartdeveloper

Description

@bartdeveloper

In my case, ionic-appauth plugin send request for new access/refresh token to Azure AD after few/over a dozen request with bearer token (and then unfortunately Azure blocking my next requests for login for some time). Maybe it is problem with usage SecureStorage? I thought app lost entry from SecureStorage oraz my config is bad.

And another related case - when I testing solution in web browser - then I getting info: token is valid (from isValid() method), but when I testing authorization on mobile device (use Pkce: true) then I always got info: token is not valid ( isValid() return false). What might be caused this problem?

It's my config for mobile:

   identity_client: 'id-from-Azure', 
    identity_server: 'https://login.microsoftonline.com/some-id-graph/', 
    redirect_url: 'APP-ID://callback',
    scopes: 'openid profile offline_access',
    usePkce: true,
    end_session_redirect_url: 'APP-ID://endSession',
    auth_extras: { 'resource' : 'api-id-from-Azure' }

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