authenticationHeaders property

Map<String, String> authenticationHeaders

The set of HTTP headers sent along with Nhost API calls.

Implementation

Map<String, String> get authenticationHeaders {
  return {
    if (accessToken != null) authorizationHeader: 'Bearer $accessToken',
  };
}