Skip to content

getJWSAlgorithm

getJWSAlgorithm(token) → string · Security

Gets the algorithm (alg) from a JWS token header. See Chapter 38.

  • token (required): JWS/JWT token string
utlx
{
  algorithm: getJWSAlgorithm($input.token)   // "RS256"
}

Released under AGPL-3.0.