initArcaneAuth function

void initArcaneAuth({
  1. bool allowAnonymous = false,
  2. Future<void> onBind(
    1. UserMeta user
    )?,
  3. Future<void> onUnbind()?,
  4. bool autoLink = true,
  5. List<SocialSignInSiteConfig> signInConfigs = const [],
})

Implementation

void initArcaneAuth({
  bool allowAnonymous = false,
  Future<void> Function(UserMeta user)? onBind,
  Future<void> Function()? onUnbind,
  bool autoLink = true,
  List<SocialSignInSiteConfig> signInConfigs = const [],
}) {
  services().register<AuthService>(
      () => AuthService(
            signInConfigs: signInConfigs,
            onBind: onBind,
            onUnbind: onUnbind,
            allowAnonymous: allowAnonymous,
            autoLink: autoLink,
          ),
      lazy: false);
}