signIn method

Future<bool> signIn(
  1. String sdkVersion
)

Implementation

Future<bool> signIn(String sdkVersion) async {
  try {
    await _api!.post(
      '/sign_in',
      options: Options(
        headers: {
          "Authorization": "Bearer $_token", // set content-length
          "Sdk-Version": "$sdkVersion"
        },
      ),
    );
    print("logged in");
    return true;
  } on DioError catch (e) {
    throw e;
  }
}