Skip to content

[Bug] silenttoken not getting on iOS #5141

@RaiAlka

Description

@RaiAlka

Library version used

Msal 1.2.9

.NET version

Application is built in native iOS using Msal sdk

Scenario

PublicClient - mobile app

Is this a new or an existing app?

The app is in production, I haven't upgraded MSAL, but started seeing this issue

Issue description and reproduction steps

Recently using new policies and facing below issue
[+oneAppLog][AzureUtility.getTokenSilently(policy:completionHandler:)] - Azure Utility acquireToken SILENTLY error : Optional(Error Domain=MSALErrorDomain Code=-50002 "(null)" UserInfo={MSALErrorDescriptionKey=User interaction is required, MSALOAuthErrorKey=invalid_grant, MSALCorrelationIDKey=9CB85855-62A1-4EFE-99FE-4EE364304B15, NSUnderlyingError=0x3007620d0 {Error Domain=MSALErrorDomain Code=-50000 "(null)" UserInfo={MSALErrorDescriptionKey=AADB2C90129: The provided grant has been revoked. Please reauthenticate and try again.
 
Correlation ID: a8589387-c7bc-429d-9322-1fe0f390de77

But if same users signing in getting silent token

Relevant code snippets

Expected behavior

For new users also silenttoken should be generated

Identity provider

Azure B2C Custom Policy

Regression

No response

Solution and workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions