Skip to content

Commit

Permalink
fix: in code flow pass options to error handler
Browse files Browse the repository at this point in the history
Closes #972
  • Loading branch information
Chaz Gatian committed Nov 5, 2020
1 parent 8d152c2 commit c9a2c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1643,7 +1643,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {

if (parts['error']) {
this.debug('error trying to login');
this.handleLoginError({}, parts);
this.handleLoginError(options, parts);
const err = new OAuthErrorEvent('code_error', {}, parts);
this.eventsSubject.next(err);
return Promise.reject(err);
Expand Down

0 comments on commit c9a2c55

Please sign in to comment.