LoginScope constructor

const LoginScope({
  1. Key? key,
  2. required Uri serverUrl,
  3. required Uri callbackUrl,
  4. required String oauthClientId,
  5. required Widget builder(
    1. BuildContext context
    ),
  6. String scope = fullOAuthScope,
  7. void onAuthenticated(
    1. String returnUrl
    )?,
  8. Widget signInBuilder(
    1. BuildContext context,
    2. bool isCancelled,
    3. void signIn(
      1. String? provider
      )
    )?,
  9. Map<String, String>? extraQueryParams,
  10. OAuthSessionManager? session,
  11. Client? client,
  12. bool preferEphemeralAuthSession = false,
  13. FutureOr<void> onSessionReady()?,
  14. WidgetBuilder? loadingBuilder,
})

Implementation

const LoginScope({
  super.key,
  required this.serverUrl,
  required this.callbackUrl,
  required this.oauthClientId,
  required this.builder,
  this.scope = fullOAuthScope,
  this.onAuthenticated,
  this.signInBuilder,
  this.extraQueryParams,
  this.session,
  this.client,
  this.preferEphemeralAuthSession = false,
  this.onSessionReady,
  this.loadingBuilder,
});