Skip to content

Commit

Permalink
Bug Fix for issue 'Conflict of events at startup #18'
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwieland committed Mar 13, 2020
1 parent ad8373e commit f7b1724
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic-appauth",
"version": "0.5.0",
"version": "0.5.1",
"description": "Intergration for OpenId/AppAuth-JS into Ionic V3/4/5",
"main": "lib/index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/ionic-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ export class IonicAuth implements BaseIonicAuth {

if(this.requestHandler instanceof AuthorizationRequestHandler){
await this.storage.setItem(AUTHORIZATION_RESPONSE_KEY, url);
this.requestHandler.completeAuthorizationRequestIfPossible();
return this.requestHandler.completeAuthorizationRequestIfPossible();
}else{
await this.storage.setItem(IMPLICIT_RESPONSE_KEY, url);
this.requestHandler.completeImplicitRequestIfPossible();
return this.requestHandler.completeImplicitRequestIfPossible();
}
}

Expand Down

0 comments on commit f7b1724

Please sign in to comment.