Skip to main content
All docs
V25.2
  • MiddleTierClientBuilder<TDbContext>.UseTokenAuthentication Method

    Name Parameters Description
    UseTokenAuthentication(String, Func<String>) schemeName, accessTokenProvider Configures the client to use a custom authentication based on the specified authentication scheme name and a JSON web token (JWT) identified through a delegate.
    UseTokenAuthentication(String, Func<Task<String>>) schemeName, accessTokenProviderAsync Configures the client to use a custom authentication based on the specified authentication scheme name and a JSON web token (JWT) identified through an async delegate.
    UseTokenAuthentication(String, String) schemeName, accessToken Configures the client to use a custom authentication based on the specified JSON web token (JWT) and authentication scheme name.