nhost_flutter_auth
library
Classes
-
AuthStore
-
Interface implemented by objects responsible for persisting authentication
information between restarts of an app.
-
ImageCornerRadius
-
The corner radius applied to an image.
-
ImageTransform
-
Instructs the backend on how to transform a stored image.
-
NhostAuthClient
-
The Nhost authentication service.
-
NhostAuthProvider
-
Exposes Nhost authentication information to its subtree.
-
NhostClient
-
API client for accessing Nhost's authentication and storage APIs.
-
NhostFunctionsClient
-
Client for calling Nhost serverless functions.
-
NhostStorageClient
-
The Nhost storage service.
-
ServiceUrls
-
Requires when constructing SDK for self-host projects
-
Session
-
Represents a user-authenticated session with Nhost.
-
Subdomain
-
Requires when construction SDK for cloud or localhost
Properties
-
debugLogNhostErrorsToConsole
↔ bool
-
When
true
, errors will be printed to the console via Logger.root
(from
the logging
package). When false
, no logging will take place.
getter/setter pair
Functions
-
combinedLinkForNhost(NhostClientBase nhostClient, {Client? httpClientOverride})
→ Link
-
Creates a link that that configures automatically based on
nhostClient
's
authentication state, and will select HTTP or Web Socket transport as
appropriate.
-
createNhostGraphQLClient(NhostClientBase nhostClient, {GraphQLCache? gqlCache, Client? httpClientOverride})
→ GraphQLClient
-
Constructs a GQL client for accessing Nhost.io's backend.
-
createNhostGraphQLClientForAuth(String nhostGqlEndpointUrl, HasuraAuthClient nhostAuth, {GraphQLCache? gqlCache, Client? httpClientOverride})
→ GraphQLClient
-
Constructs a GQL client for accessing Nhost.io's backend.
-
createNhostServiceEndpoint({required String subdomain, required String region, required String service, String apiVersion = 'v1', String protocol = 'https'})
→ String
-
Generate Endpoint for each service and based on the subdomain
Exceptions / Errors
-
ApiException
-
Thrown by
ApiClient
to indicate a failed API call.