SupaSocialsAuth constructor
const
SupaSocialsAuth({
- Key? key,
- NativeGoogleAuthConfig? nativeGoogleAuthConfig,
- bool enableNativeAppleAuth = true,
- required List<
OAuthProvider> socialProviders, - bool colored = true,
- String? redirectUrl,
- required void onSuccess(
- Session session
- void onError(
- Object error
- SocialButtonVariant socialButtonVariant = SocialButtonVariant.iconAndText,
- bool showSuccessSnackBar = true,
- Map<
OAuthProvider, String> ? scopes, - Map<
OAuthProvider, Map< ? queryParams,String, String> > - SupaSocialsAuthLocalization localization = const SupaSocialsAuthLocalization(),
Implementation
const SupaSocialsAuth({
Key? key,
this.nativeGoogleAuthConfig,
this.enableNativeAppleAuth = true,
required this.socialProviders,
this.colored = true,
this.redirectUrl,
required this.onSuccess,
this.onError,
this.socialButtonVariant = SocialButtonVariant.iconAndText,
this.showSuccessSnackBar = true,
this.scopes,
this.queryParams,
this.localization = const SupaSocialsAuthLocalization(),
}) : super(key: key);