encodeBase64Url function

String encodeBase64Url(
  1. List<int> bytes
)

Encodes bytes as base64url without padding, as RFC 7515 ยง2 requires.

Implementation

String encodeBase64Url(List<int> bytes) =>
    base64Url.encode(bytes).replaceAll('=', '');