Skip to content

isJWSFormat

isJWSFormat(token) → boolean · Security

Checks if a string is in valid JWS format (three Base64URL segments separated by dots). See Chapter 38.

  • token (required): string to validate
utlx
{
  validFormat: isJWSFormat($input.token),
  canDecode: isJWSFormat($input.authHeader)
}

Released under AGPL-3.0.