Frontegg constructor
Frontegg(
- dynamic baseUrl,
- dynamic headerImage, {
- dynamic gitHubSignIn,
- dynamic localizationFileName,
- dynamic microsoftConfig,
- dynamic dio,
Implementation
Frontegg(baseUrl, headerImage, {gitHubSignIn, localizationFileName, microsoftConfig, dio})
: _user = FronteggUser(
git: gitHubSignIn != null
? GitHubSignIn(
clientId: gitHubSignIn['clientId'],
clientSecret: gitHubSignIn['clientSecret'],
redirectUrl: 'https://frontegg.com/')
: null,
microsoft: microsoftConfig != null
? Config(
tenant: microsoftConfig['tenant'],
clientId: microsoftConfig['clientId'],
scope: "openid profile offline_access",
redirectUri: "msauth.com.example.testApp://auth")
: null,
dioForTests: dio) {
baseUrl = baseUrl;
// TODO: use a default logo here
logo = headerImage = '';
localTranslations = LocalTranslations(localizationFileName);
git = gitHubSignIn;
microsoft = microsoftConfig;
}