LoginManager constructor
LoginManager(
- bool isAndroid
Implementation
LoginManager(bool isAndroid) {
if (isAndroid) {
client = OAuth2Client(
authorizeUrl:
"https://auth.${Preferences.prefs!.getString("DomainName")}/oauth/authorize",
tokenUrl:
"https://auth.${Preferences.prefs!.getString("DomainName")}/oauth/token",
redirectUri: "my.test.app:/oauth2redirect", // TODO
customUriScheme: "my.test.app",
);
} else {
client = OAuth2Client(
authorizeUrl:
"https://auth.${Preferences.prefs!.getString("DomainName")}/oauth/authorize",
tokenUrl:
"https://auth.${Preferences.prefs!.getString("DomainName")}/oauth/token",
redirectUri: AuthGlobals.redirectUriWeb,
// refreshUrl: "https://auth.${GlobalSettings.domainName}/oauth/token",
customUriScheme: Uri.parse(AuthGlobals.redirectUriWeb).authority,
);
}
if (kIsWeb) {
baseWebAuth = CustomWebBase();
}
}