Skip to content

Commit

Permalink
Merge pull request #178 from LezdCS/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
LezdCS authored May 7, 2024
2 parents adeaa68 + 7df5b9c commit 383f245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/data/repositories/twitch_repository_impl.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'dart:convert';
import 'dart:io';

import 'package:dio/dio.dart';
import 'package:firebase_remote_config/firebase_remote_config.dart';
Expand All @@ -19,6 +20,7 @@ import 'package:irllink/src/domain/repositories/twitch_repository.dart';
import 'package:jwt_decoder/jwt_decoder.dart';
import 'package:quiver/iterables.dart';
import 'package:twitch_chat/twitch_chat.dart';
import 'package:irllink/src/core/utils/globals.dart' as globals;

import '../entities/twitch/twitch_poll_dto.dart';

Expand Down Expand Up @@ -107,7 +109,7 @@ class TwitchRepositoryImpl extends TwitchRepository {

response = await dio.get(
apiRefreshTokenUrl,
queryParameters: {'refresh_token': twitchData.refreshToken},
queryParameters: {'refresh_token': twitchData.refreshToken, 'app_version': globals.version, 'platform': Platform.isAndroid ? 'android' : 'ios'},
);

TwitchCredentials newTwitchData = TwitchCredentials(
Expand Down

0 comments on commit 383f245

Please sign in to comment.