( seal: string, )
| 159 | isErrorWithCode(cause) && (cause.code === JWKSTimeout.code || cause.code === JWKSInvalid.code); |
| 160 | |
| 161 | const parseWorkOSSeal = ( |
| 162 | seal: string, |
| 163 | ): { readonly sealWithoutVersion: string; readonly tokenVersion: number | null } => { |
| 164 | const [sealWithoutVersion = "", tokenVersionAsString] = seal.split(WORKOS_SEAL_VERSION_DELIMITER); |
| 165 | return { |
| 166 | sealWithoutVersion, |
| 167 | tokenVersion: |
| 168 | tokenVersionAsString === undefined ? null : Number.parseInt(tokenVersionAsString, 10), |
| 169 | }; |
| 170 | }; |
| 171 | |
| 172 | const unsealWorkOSSession = async ( |
| 173 | sessionData: string, |
no outgoing calls
no test coverage detected