useUser

useUser is a helper hook that will returns the signed in user

How to use

import { Plugin } from '@root'

const MyCustomComponent = () => {
    const user = Plugin.usUser()
    
    return (
        <div>
            <p>username: {user.name}</p>
        </div>
    )
}

export default MyCustomComponent

Last updated