isAuthenticated === false vs user === null
Is there any difference (maybe performance?) between:
and
?
1 Reply
Nothing measurable, more guagued around usage.
isAuthenticated checks if the user exists and returns boolean user returns the user itself
isAuthenticated checks if the user exists and returns boolean user returns the user itself