NhostClient class

API client for accessing Nhost's authentication and storage APIs.

User authentication and management is provided by the auth service, which implements the Nhost Authentication API.

File storage is provided by the storage service, which implements the Nhost Storage API.

Additional packages for working with GraphQL and Flutter can be found at https://pub.dev/publishers/nhost.io

Constructors

NhostClient({required String backendUrl, AuthStore? authStore, Duration? tokenRefreshInterval, Client? httpClientOverride})
Constructs a new Nhost client.

Properties

auth AuthClient
The Nhost authentication service.
no setter
backendUrl String
The Nhost project's backend URL.
final
functions FunctionsClient
The Nhost serverless functions service.
no setter
gqlEndpointUrl String
The GraphQL endpoint URL.
no setter
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
The HTTP client used by this client's services.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storage StorageClient
The Nhost file storage service.
no setter

Methods

close() → void
Releases the resources used by this client.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited