As per my experience, there is no need of token or basic auth while doing login. And login is post method not get.


Turns out the documentation i read was outdated/incorrect. The api uses "Digest authentication" which i looked up and was able to implement. This is the code if anyone is interested:

import 'package:http/http.dart';
import 'package:http_auth/http_auth.dart';


Response res = await DigestAuthClient("USERNAME", "PASSWORD")
      .get(Uri.parse("API_URL")).timeout(const Duration(seconds: 20));

Related Query

More Query from same tag