AtAuthServiceImpl constructor
AtAuthServiceImpl(
- String _atSign,
- AtClientPreference _atClientPreference
Returns an instance of AtAuthService
Usage:
AtAuthService authService = AtClientMobile.authService(_atsign!, _atClientPreference);
Implementation
AtAuthServiceImpl(this._atSign, this._atClientPreference) {
// If the '@' symbol is omitted, it leads to an incorrect format for the AtKey when retrieving the
// encrypted defaultEncryptionPrivateKey and encrypted defaultSelfEncryptionKey.
if (!_atSign.startsWith('@')) {
_atSign = '@$_atSign';
}
_atAuth = atAuthBase.atAuth();
atEnrollmentBase = atAuthBase.atEnrollment(_atSign);
}