Browse Source
Merge pull request #7532 from abpframework/refactor/revoke-token
Used the revokeTokenAndLogout of OAuthService instead of logOut method
pull/7538/head
Muhammed Altuğ
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/strategies/auth-flow.strategy.ts
|
|
|
@ -70,7 +70,8 @@ export class AuthCodeFlowStrategy extends AuthFlowStrategy { |
|
|
|
} |
|
|
|
|
|
|
|
logout() { |
|
|
|
this.oAuthService.logOut(); |
|
|
|
this.oAuthService.revokeTokenAndLogout(); |
|
|
|
// TODO: no need to return of(null). It may be removed in v5.0.
|
|
|
|
return of(null); |
|
|
|
} |
|
|
|
|
|
|
|
|