This commit is contained in:
Schnitzel5 2025-08-25 19:47:10 +02:00
parent 809db56b35
commit 9b11e07cec
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ class Simkl extends _$Simkl implements BaseTracker {
static final _isDesktop = (Platform.isWindows || Platform.isLinux);
static final _redirectUri = _isDesktop
? 'http://localhost:43824'
: 'mangayomi';
: 'mangayomi://';
static const _clientId =
'1e0a52930b1bdface4e30c1a94a44641475f3c80b69a5ea939562153fccffb68';
static const _clientSecret =
@ -43,7 +43,7 @@ class Simkl extends _$Simkl implements BaseTracker {
try {
final uri = await FlutterWebAuth2.authenticate(
url: "$loginUrl&redirect_uri=$callbackUrlScheme",
url: "$loginUrl&redirect_uri=$_redirectUri",
callbackUrlScheme: callbackUrlScheme,
);
final code = Uri.parse(uri).queryParameters['code'];

View file

@ -22,7 +22,7 @@ class TraktTv extends _$TraktTv implements BaseTracker {
static final _isDesktop = (Platform.isWindows || Platform.isLinux);
static final _redirectUri = _isDesktop
? 'http://localhost:43824'
: 'mangayomi';
: 'mangayomi://';
static const _clientId =
'5520c7e24da0d8d73ec80315b61b9849483583b013cb7f296c6db723eb9886a1';
static const _clientSecret =