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 for me.
Please anyone give me a solution how can I solve this problem .
final dio = Dio();
final cookieJar = CookieJar(); //PersistCookieJar(); //todo.
dio.interceptors.add(CookieManager(cookieJar));
final Link _dioLink = DioLink(
graphqlEndpoint,
client: dio,
);
solve http-only cookie based authentication system using flutter graphql.
1 Answer
Are you find any helpfull solution?
1
-
1
This does not provide an answer to the question. You can search for similar questions, or refer to the related and linked questions on the right-hand side of the page to find an answer. If you have a related but different question, ask a new question, and include a link to this one to help provide context. See: Ask questions, get answers, no distractions
– Natty52 mins ago