Skip to main content

useUser

Platforms:✓ Expo

This hook returns the decoded payload of the current JWT id token.

import { useUser } from '@healthblocks-io/core/auth'

function Page() {
const decoded = useUser()
console.log('My id is', decoded?.sub)
}