1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | exports.validateClaimsRequest = void 0;
|
8 | var ClientConfigurationError_1 = require("./error/ClientConfigurationError");
|
9 | function validateClaimsRequest(request) {
|
10 | if (!request.claimsRequest) {
|
11 | return;
|
12 | }
|
13 | try {
|
14 | JSON.parse(request.claimsRequest);
|
15 | }
|
16 | catch (e) {
|
17 | throw ClientConfigurationError_1.ClientConfigurationError.createClaimsRequestParsingError(e);
|
18 | }
|
19 |
|
20 | }
|
21 | exports.validateClaimsRequest = validateClaimsRequest;
|
22 |
|
\ | No newline at end of file |