Language

AuthenticationRefreshOptions Class

Definition

Configures automatic authentication token refresh for a HubConnection.

public sealed class AuthenticationRefreshOptions
type AuthenticationRefreshOptions = class
Public NotInheritable Class AuthenticationRefreshOptions
Inheritance
AuthenticationRefreshOptions

Constructors

Name Description
AuthenticationRefreshOptions()

Properties

Name Description
EnableAutoRefresh

Enables automatic token refresh before the server-reported token expiration. Default is true.

OnAuthenticationRefreshed

Optional callback invoked after a successful authentication refresh.

OnAuthenticationRefreshFailed

Optional callback invoked when an authentication refresh attempt fails.

RefreshBeforeExpiration

How far before the server-reported token expiration the client should refresh. The client schedules refresh at: now + tokenLifetimeSeconds - RefreshBeforeExpiration. Default is 5 minutes.

Applies to