TypeAlias.BaseAuth
type BaseAuth =
| {
isAuthenticated: undefined;
user: undefined;
}
| {
isAuthenticated: false;
user: null;
}
| {
isAuthenticated: true;
user: AuthUser;
};
Represents the authentication state of the user.
This type can be one of the following states:
-
Unintialized:
user:undefinedisAuthenticated:undefined
-
Unauthenticated:
user:nullisAuthenticated:false
-
Authenticated:
user:AuthUserisAuthenticated:true