Skip to content

Instantly share code, notes, and snippets.

@FlutterWiz
Created January 7, 2023 13:08
Show Gist options
  • Save FlutterWiz/d314c752df6ed08646ab09fa03885d30 to your computer and use it in GitHub Desktop.
Save FlutterWiz/d314c752df6ed08646ab09fa03885d30 to your computer and use it in GitHub Desktop.
part 'auth_failure.freezed.dart';
@freezed
class AuthFailure with _$AuthFailure {
const factory AuthFailure.serverError() = _ServerError;
const factory AuthFailure.tooManyRequests() = _TooManyRequests;
const factory AuthFailure.deviceNotSupported() = _DeviceNotSupported;
const factory AuthFailure.smsTimeout() = _SmsTimeout;
const factory AuthFailure.sessionExpired() = _SessionExpired;
const factory AuthFailure.invalidVerificationCode() = _InvalidVerificationCode;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment