(params: URLSearchParams)
| 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 | } |