Tag: dart
-
The problem of cyclic dependence in constructing the links between AuthService and FreshLink for OAuth2.0 authorization in GraphQL in Flutter
0 In my project, I use the fresh_graphql package to refresh tokens at the GraphQLClient link level. This package adds the access token to headers, manages token storage, and handles authorization errors, after which it refreshes the tokens. I plan to create a similar link that will only add tokens to headers and handle authorization…
-
GraphQL and Bloc in Flutter
0 So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) here is my graphql function – void _onLoginButtonPressed( LoginButtonPressed event, Emitter<LoginState> emit) async…
-
GraphQL in Flutter
0 So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) here is my graphql function – void _onLoginButtonPressed( LoginButtonPressed event, Emitter<LoginState> emit) async…
-
HttpLinkParserException using GraphQL in Flutter
0 So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character 1) here is my graphql function – void _onLoginButtonPressed( LoginButtonPressed event, Emitter<LoginState> emit) async…
-
how i can create a function in flutter using graphQL to register a user in supabase platform?
-2 the problem is specifically related to user registration using GraphQL on the Supabase platform, and you’re seeking help to resolve it. this the function i use Future<void> registerEmployee( String email, String password, BuildContext context) async { try { setIsLoading = true; if (email.isEmpty || password.isEmpty) { throw ‘All Fields are required’; } const String…
-
Artemis code generation failing to build a Dart class for one of the types in my GraphQL schema
0 This is an excerpt from a schema I’m working on. I’m trying to use Artemis to generate Dart classes for a Flutter app. interface Node { """The ID of the object""" id: ID! } type PictureNode implements Node { """The ID of the object""" id: ID! image: String! created: DateTime! thumbs: ThumbnailsNode } type…
-
How to do HTTP-Only Cookie based authentication using flutter and graphql api
0 I am currently using graphql_flutter: ^5.1.2 for fetching Graphql api. On the host server there is used httponly cookie based authentication. In react there is http only option for cookie but on graphql_flutter i can’t find any option like that . I already test this system using dio client . But it doesn’t work…
-
What is enum DataSource.Link in flutter ferry?
0 I am looking at this code in the file operation_response.dart from ferry_exec 0.3.1 https://pub.dev/packages/ferry_exec enum DataSource { /// A placeholder response source which can be used when waiting for another source None, /// Data originated from the client’s [Link] Link, /// Data originated from the [Cache] Cache, /// Data originated from a user-provided [OperationRequest.optimisticResponse]…