Accesses the user's principal.
function UserPrincipalComponent() { const userPrincipal = useUserPrincipal(); return ( <div> {userPrincipal ? `User principal: ${userPrincipal}` : 'User principal not found.'} </div> );} Copy
function UserPrincipalComponent() { const userPrincipal = useUserPrincipal(); return ( <div> {userPrincipal ? `User principal: ${userPrincipal}` : 'User principal not found.'} </div> );}
Accesses the user's principal.