requiresAuth property

bool requiresAuth
final

Whether authentication is required for requests by default.

When true (default), requests will fail if token refresh fails. When false, requests will continue without authorization if token refresh fails, allowing the app to work in a "logged-out" state.

Can be overridden per-request using RestApiClientRequestOptions.requiresAuth.

Implementation

final bool requiresAuth;