forked from authts/oidc-client-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSignoutResponse.ts
More file actions
28 lines (23 loc) · 911 Bytes
/
Copy pathSignoutResponse.ts
File metadata and controls
28 lines (23 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
/**
* @public
*/
export class SignoutResponse {
public readonly state: string | null;
// error props
/** @see {@link ErrorResponse.error} */
public error: string | null;
/** @see {@link ErrorResponse.error_description} */
public error_description: string | null;
/** @see {@link ErrorResponse.error_uri} */
public error_uri: string | null;
/** custom state data set during the initial signin request */
public userState: unknown;
public constructor(params: URLSearchParams) {
this.state = params.get("state");
this.error = params.get("error");
this.error_description = params.get("error_description");
this.error_uri = params.get("error_uri");
}
}