Skip to content

Commit

Permalink
Merge pull request #87 from Kinvey/MLIBZ-1532
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasconner committed Dec 13, 2016
2 parents 4dd5e04 + 6aebb10 commit 715b3cb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/identity/src/mic.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ export class MobileIdentityConnect extends Identity {
.then(() => {
if (authorizationGrant === AuthorizationGrant.AuthorizationCodeLoginPage) {
// Step 1: Request a code
return this.requestCodeWithPopup(clientId, redirectUri, options)
.catch((error) => {
if (error instanceof PopupError) {
throw new MobileIdentityConnectError('AuthorizationGrant.AuthorizationCodeLoginPage is not supported on this platform.');
}
});
return this.requestCodeWithPopup(clientId, redirectUri, options);
} else if (authorizationGrant === AuthorizationGrant.AuthorizationCodeAPI) {
// Step 1a: Request a temp login url
return this.requestTempLoginUrl(clientId, redirectUri, options)
Expand Down

0 comments on commit 715b3cb

Please sign in to comment.