<PackageReference Include="Azure.Core" Version="1.47.3" />

Base64Url

static class Base64Url
public static byte[] Decode(string encoded)

Converts a Base64URL encoded string to a string.

public static string Encode(byte[] bytes)

Encode a byte array as a Base64URL encoded string.