MCPcopy
hub / github.com/authts/oidc-client-ts / signoutRedirect

Method signoutRedirect

src/UserManager.ts:571–584  ·  view source on GitHub ↗

* Trigger a redirect of the current window to the end session endpoint. * * @returns A promise

(args: SignoutRedirectArgs = {})

Source from the content-addressed store, hash-verified

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.

Callers 3

startSignoutMainWindowFunction · 0.80
startSignoutMainWindowFunction · 0.80

Calls 4

_signoutStartMethod · 0.95
prepareMethod · 0.65
infoMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected