Skip to content

Commit

Permalink
Merge pull request #537 from enricodeleo/master
Browse files Browse the repository at this point in the history
feature: Abort current implicit flow
  • Loading branch information
manfredsteyer authored Jul 17, 2019
2 parents ba7817a + b41182b commit 5e28f54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,15 @@ export class OAuthService extends AuthConfig {
}
}

/**
* Reset current implicit flow
*
* @description This method allows resetting the current implict flow in order to be initialized again.
*/
public resetImplicitFlow(): void {
this.inImplicitFlow = false;
}

protected callOnTokenReceivedIfExists(options: LoginOptions): void {
const that = this;
if (options.onTokenReceived) {
Expand Down

0 comments on commit 5e28f54

Please sign in to comment.