Auth constructor

Auth(
  1. Config _config,
  2. Attestation attestation
)

Constructs Auth with config and attestation.

This constructor is typically called internally by the Users class and should not be used directly in application code.

Parameters

  • _config: The SDK configuration containing API endpoints and settings
  • attestation: The attestation service for device verification

Implementation

Auth(this._config, Attestation attestation) {
  email = Email(_config, attestation, this);
  apple = Provider(
    UserAuthenticationProvider.apple,
    _config,
    attestation,
    this,
  );
  google = Provider(
    UserAuthenticationProvider.google,
    _config,
    attestation,
    this,
  );
}