diff --git a/src/Microsoft.AspNetCore.Authentication/Data/TextEncoder.cs b/src/Microsoft.AspNetCore.Authentication/Data/TextEncoder.cs
index c0663295cf..1f7ecc7184 100644
--- a/src/Microsoft.AspNetCore.Authentication/Data/TextEncoder.cs
+++ b/src/Microsoft.AspNetCore.Authentication/Data/TextEncoder.cs
@@ -13,7 +13,7 @@ namespace Microsoft.AspNetCore.Authentication
/// Base64 encoded string modified with non-URL encodable characters
public static string Encode(byte[] data)
{
- return WebUtilities.Base64UrlTextEncoder.Encode(data);
+ return WebUtilities.WebEncoders.Base64UrlEncode(data);
}
///
@@ -24,7 +24,7 @@ namespace Microsoft.AspNetCore.Authentication
/// The decoded data.
public static byte[] Decode(string text)
{
- return WebUtilities.Base64UrlTextEncoder.Decode(text);
+ return WebUtilities.WebEncoders.Base64UrlDecode(text);
}
}
}