jose.jwk.b64url_decode

jose.jwk

b64url_decode(s, name) -> bytes, err

Decode a strict base64url string

Accepts A-Za-z0-9-_ alone, with no padding, as RFC 7515 writes every segment and member. name opens the error, so a caller says which field was bad. The decoder in crypto accepts +, / and = as well, and this is the one gate in front of it.