<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.18" />

Microsoft.Rest.StringTokenProvider

public sealed class StringTokenProvider : ITokenProvider
A simple token provider that always provides a static access token.
public string TokenType { get; }

Gets the token type of this access token.

public StringTokenProvider(string accessToken, string tokenType)

Create a token provider for the given token type that returns the given access token.

Returns the static access token.