Gets the currently signed-in user, if any.
The currently signed-in user, or null if no user is signed in.
const user = await getCurrentUser(); Copy
const user = await getCurrentUser();
Gets the currently signed-in user, if any.