( seal: string, )
| 137 | isErrorWithCode(cause) && (cause.code === JWKSTimeout.code || cause.code === JWKSInvalid.code); |
| 138 | |
| 139 | const parseWorkOSSeal = ( |
| 140 | seal: string, |
| 141 | ): { readonly sealWithoutVersion: string; readonly tokenVersion: number | null } => { |
| 142 | const [sealWithoutVersion = "", tokenVersionAsString] = seal.split(WORKOS_SEAL_VERSION_DELIMITER); |
| 143 | return { |
| 144 | sealWithoutVersion, |
| 145 | tokenVersion: |
| 146 | tokenVersionAsString === undefined ? null : Number.parseInt(tokenVersionAsString, 10), |
| 147 | }; |
| 148 | }; |
| 149 | |
| 150 | const unsealWorkOSSession = async ( |
| 151 | sessionData: string, |
no outgoing calls
no test coverage detected