auth !== null, , .
auth.uid == $uid, , , . auth == null && auth.uid != $uid, auth.uid == $uid false, auth null. , .
, auth != null , auth.uid != null , .
.
Bolt, .
, . Bolt.
Bolt Firebase. . , .
I Bolt. , , , Bolt.
isCurrentUser(uid) = auth != null && auth.uid == uid;
isAuthenticated() = auth != null
path /users/$uid {
read() = isAuthenticated() // any authenticated user can read
write() = isCurrentUser($uid);
}
isCurrentUser() . .