encode static method
Encodes bytes
to Base64Url string without padding
as per WebAuthn spec: Base64url with all trailing '=' characters omitted
Implementation
static String encode(List<int> bytes) {
return base64Url.encode(bytes).replaceAll(RegExp(r'=+$'), '');
}