<PackageReference Include="Microsoft.Azure.Storage.Common" Version="11.2.0" />

Microsoft.Azure.Storage.Auth.TokenCredential

public sealed class TokenCredential : IDisposable
Represents a token that is used to authorize HTTPS requests.
public string Token { get; set; }

The authorization token. It can be set by the user at any point in a thread-safe way.

public TokenCredential(string initialToken)

Create an instance of TokenCredential.

public TokenCredential(string initialToken, RenewTokenFuncAsync periodicTokenRenewer, object state, TimeSpan renewFrequency)

Create an instance of TokenCredential.

public void Dispose()

Calling Dispose stops the timer and periodicTokenRenewer.