mirror of
https://gitlab.com/mysocialportal/relatica
synced 2024-10-18 13:33:32 +00:00
Fix, redirect scheme on desktop has to be the full URL not just http
This commit is contained in:
parent
0ecee1e777
commit
119647e214
1 changed files with 4 additions and 3 deletions
|
@ -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: '',
|
||||
|
|
Loading…
Reference in a new issue