mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-28 19:36:13 +00:00
12 lines
496 B
Dart
12 lines
496 B
Dart
import 'package:flowy_sdk/protobuf/flowy-user/protobuf.dart' show UserProfilePB;
|
|
import 'package:flowy_sdk/protobuf/flowy-error/errors.pb.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
part 'auth_state.freezed.dart';
|
|
|
|
@freezed
|
|
class AuthState with _$AuthState {
|
|
const factory AuthState.authenticated(UserProfilePB userProfile) = Authenticated;
|
|
const factory AuthState.unauthenticated(FlowyError error) = Unauthenticated;
|
|
const factory AuthState.initial() = _Initial;
|
|
}
|