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) { factory OAuthCredentials.bootstrap(String serverName) {
final redirectScheme = final redirectScheme = Platform.isWindows || Platform.isLinux
Platform.isWindows || Platform.isLinux ? 'http' : 'relatica'; ? 'http://localhost:43824'
: 'relatica';
final redirectUrl = Platform.isWindows || Platform.isLinux final redirectUrl = Platform.isWindows || Platform.isLinux
? '$redirectScheme://localhost:43824' ? redirectScheme
: '$redirectScheme://authorize'; : '$redirectScheme://authorize';
return OAuthCredentials( return OAuthCredentials(
clientId: '', clientId: '',