mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-04-21 11:51:57 +00:00
final fix
This commit is contained in:
parent
a6d79f1238
commit
163e385b63
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ class TraktTv extends _$TraktTv implements BaseTracker {
|
|||
static final _isDesktop = (Platform.isWindows || Platform.isLinux);
|
||||
static final _redirectUri = _isDesktop
|
||||
? 'http://localhost:43824'
|
||||
: 'https://intradeus.github.io/http-protocol-redirector/?r=mangayomi://';
|
||||
: 'mangayomi://';
|
||||
static const _clientId =
|
||||
'5520c7e24da0d8d73ec80315b61b9849483583b013cb7f296c6db723eb9886a1';
|
||||
static const _clientSecret =
|
||||
|
|
@ -43,7 +43,7 @@ class TraktTv extends _$TraktTv 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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue