(message: string)
| 116 | } |
| 117 | |
| 118 | function invalidRequest(message: string): ServiceError { |
| 119 | return { |
| 120 | statusCode: StatusCodes.BAD_REQUEST, |
| 121 | errorCode: ErrorCode.INVALID_REQUEST_BODY, |
| 122 | message, |
| 123 | }; |
| 124 | } |
| 125 | |
| 126 | function assertHttpsAuthUrlInProduction(): ServiceError | undefined { |
| 127 | if (env.NODE_ENV !== 'production') { |
no outgoing calls
no test coverage detected