Fix, redirect scheme on desktop has to be the full URL not just http

codemagic-setup
Hank Grabowski 2023-11-06 09:54:56 -05:00
rodzic 0ecee1e777
commit 119647e214
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -35,10 +35,11 @@ class OAuthCredentials implements ICredentials {
});
factory OAuthCredentials.bootstrap(String serverName) {
final redirectScheme =
Platform.isWindows || Platform.isLinux ? 'http' : 'relatica';
final redirectScheme = Platform.isWindows || Platform.isLinux
? 'http://localhost:43824'
: 'relatica';
final redirectUrl = Platform.isWindows || Platform.isLinux
? '$redirectScheme://localhost:43824'
? redirectScheme
: '$redirectScheme://authorize';
return OAuthCredentials(
clientId: '',