* Trigger a redirect of the current window to the end session endpoint. * * @returns A promise
(args: SignoutRedirectArgs = {})
| 569 | * @returns A promise |
| 570 | */ |
| 571 | public async signoutRedirect(args: SignoutRedirectArgs = {}): Promise<void> { |
| 572 | const logger = this._logger.create("signoutRedirect"); |
| 573 | const { |
| 574 | redirectMethod, |
| 575 | ...requestArgs |
| 576 | } = args; |
| 577 | const handle = await this._redirectNavigator.prepare({ redirectMethod }); |
| 578 | await this._signoutStart({ |
| 579 | request_type: "so:r", |
| 580 | post_logout_redirect_uri: this.settings.post_logout_redirect_uri, |
| 581 | ...requestArgs, |
| 582 | }, handle); |
| 583 | logger.info("success"); |
| 584 | } |
| 585 | |
| 586 | /** |
| 587 | * Process response (callback) from the end session endpoint. |
no test coverage detected