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

Method constructor

src/SignoutResponse.ts:25–38  ·  view source on GitHub ↗
(params: URLSearchParams)

Source from the content-addressed store, hash-verified

23 public url_state?: string;
24
25 public constructor(params: URLSearchParams) {
26 this.state = params.get("state");
27 if (this.state) {
28 const splitState = decodeURIComponent(this.state).split(URL_STATE_DELIMITER);
29 this.state = splitState[0];
30 if (splitState.length > 1) {
31 this.url_state = splitState.slice(1).join(URL_STATE_DELIMITER);
32 }
33 }
34
35 this.error = params.get("error");
36 this.error_description = params.get("error_description");
37 this.error_uri = params.get("error_uri");
38 }
39}

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected