Use nhost.auth.getUser() to get the signed-in user.
nhost.auth.getUser()
const user = nhost.auth.getUser()