We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d72604d commit 5975b5cCopy full SHA for 5975b5c
projects/auth0-angular/src/lib/auth.service.ts
@@ -183,12 +183,14 @@ export class AuthService<TAppState extends AppState = AppState>
183
*
184
* @param options The logout options
185
*/
186
- async logout(options?: LogoutOptions): Promise<void> {
187
- await this.auth0Client.logout(options);
188
-
189
- if (options?.onRedirect) {
190
- this.authState.refresh();
191
- }
+ logout(options?: LogoutOptions): Observable<void> {
+ return from(
+ this.auth0Client.logout(options).then(() => {
+ if (options?.onRedirect) {
+ this.authState.refresh();
+ }
192
+ })
193
+ );
194
}
195
196
/**
0 commit comments