kopia lustrzana https://gitlab.com/mysocialportal/relatica
Fix, redirect scheme on desktop has to be the full URL not just http
rodzic
0ecee1e777
commit
119647e214
|
@ -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: '',
|
||||||
|
|
Ładowanie…
Reference in New Issue