The function fetchCurrentUser is expected to only return the user schema at the time being, but it shouldn't. It should also support return null to comunicate that there is no user logged in currently. null user is already supported internally by the context provider so there is no reason not to support this.
AC
fetchCurrentUser's return type is properly updated
The function
fetchCurrentUser
is expected to only return the user schema at the time being, but it shouldn't. It should also support return null to comunicate that there is no user logged in currently. null user is already supported internally by the context provider so there is no reason not to support this.AC
fetchCurrentUser
's return type is properly updated