Skip to content

Commit

Permalink
fix: return signout response from signoutCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed Oct 2, 2024
1 parent 5de05ea commit cbc4a91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/UserManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,15 @@ export class UserManager {
}
}

public async signoutCallback(url = window.location.href, keepOpen = false): Promise<void> {
public async signoutCallback(url = window.location.href, keepOpen = false): Promise<void | SignoutResponse> {
const { state } = await this._client.readSignoutResponseState(url);
if (!state) {
return;
}

switch (state.request_type) {
case "so:r":
await this.signoutRedirectCallback(url);
break;
return await this.signoutRedirectCallback(url);

Check failure on line 343 in src/UserManager.ts

View workflow job for this annotation

GitHub Actions / test

Async method 'signoutCallback' expected no return value
case "so:p":
await this.signoutPopupCallback(url, keepOpen);
break;
Expand Down

0 comments on commit cbc4a91

Please sign in to comment.