setUpEnvironment method

Future<void> setUpEnvironment({
  1. required String clientId,
  2. required String clientSecret,
  3. required String urlScheme,
  4. String state = "HnlHOJTkTb66Y5H",
  5. bool isProduction = false,
  6. String redirectUri = "https://oauthtest.com/authorization/return",
  7. String scope = "urn:uae:digitalid:profile",
})

Implementation

Future<void> setUpEnvironment({
  required String clientId,
  required String clientSecret,
  required String urlScheme,
  String state = "HnlHOJTkTb66Y5H",
  bool isProduction = false,
  String redirectUri = "https://oauthtest.com/authorization/return",
  String scope = "urn:uae:digitalid:profile",
}) async {
  UaePassPlatform.instance.setUp(
    clientId: clientId,
    clientSecret: clientSecret,
    isProduction: isProduction,
    urlScheme: urlScheme,
    state: state,
    redirectUri: redirectUri,
    scope: scope,
  );
}