Closed bbjwerner closed 7 years ago
Updated the code to do AcquireTokenSilent() first and then AcquireToken() if that fails. This is the pattern that .Net uses and we've been requested to use as well.
The pattern in .Net requires an interactionRequired MSALError to be thrown if the User object is nil, which doesn't happen in iOS library currently. To get around this for now I throw my own MSALError with ErrorCode.interactionRequired
interactionRequired
MSALError
ErrorCode.interactionRequired
@brandwe, Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA. Thanks, Microsoft Pull Request Bot
Updated the code to do AcquireTokenSilent() first and then AcquireToken() if that fails. This is the pattern that .Net uses and we've been requested to use as well.
The pattern in .Net requires an
interactionRequired
MSALError to be thrown if the User object is nil, which doesn't happen in iOS library currently. To get around this for now I throw my ownMSALError
withErrorCode.interactionRequired