Skip to main content

authClient method

GraphQLClient authClient ()

Implementation

GraphQLClient authClient() \{
final AuthLink authLink = AuthLink(getToken: () async =\> 'Bearer $token');
final Link finalAuthLink = authLink.concat(httpLink);
return GraphQLClient(
cache: GraphQLCache(partialDataPolicy: PartialDataCachePolicy.accept),
link: finalAuthLink,
);
\}