def signing.input

bend-kit-jwt@0.11.0.1 · jwt.bend:564

import bend-kit-jwt@0.11.0.1/jwt.bend as Jwt
import Base
import bend-kit-json@0.7.0.0/json.bend as Json
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

564# header.body in base64url, body being the compact JSON claims: the text the signature covers.
565def signing.input(a: Alg, kid: Maybe<&2, String>, body: Bytes.Bytes) -> String:
566  b64u(Json.encode.bytes(header(a, kid))) ++ "." ++ b64u(body)

Uses (8)

Used by (1)