diff --git a/MSAL/src/MSALResult.m b/MSAL/src/MSALResult.m index f06252982..9043cb1a0 100644 --- a/MSAL/src/MSALResult.m +++ b/MSAL/src/MSALResult.m @@ -135,10 +135,6 @@ + (MSALResult *)resultWithMSIDTokenResult:(MSIDTokenResult *)tokenResult } NSString *accessToken = [authScheme getClientAccessToken:tokenResult.accessToken popManager:popManager error:error]; - if (!accessToken) - { - return nil; - } return [self resultWithAccessToken:accessToken expiresOn:tokenResult.accessToken.expiresOn diff --git a/MSAL/src/public/MSALResult.h b/MSAL/src/public/MSALResult.h index c33fab6f4..ec3dab0c1 100644 --- a/MSAL/src/public/MSALResult.h +++ b/MSAL/src/public/MSALResult.h @@ -40,13 +40,13 @@ #pragma mark - Token response /** The Access Token requested. */ -@property (readonly, nonnull) NSString *accessToken; +@property (readonly, nullable) NSString *accessToken; /** The time that the access token returned in the Token property ceases to be valid. This value is calculated based on current UTC time measured locally and the value expiresIn returned from the service */ -@property (readonly, nonnull) NSDate *expiresOn; +@property (readonly, nullable) NSDate *expiresOn; /** Some access tokens have extended lifetime when server is in an unavailable state. @@ -67,7 +67,7 @@ /** The scope values returned from the service. */ -@property (readonly, nonnull) NSArray *scopes; +@property (readonly, nullable) NSArray *scopes; #pragma mark - Account information