Documentation
API
User

User

This is the documentation for the latest version of Next Admin. If you are using an older version (<5.0.0), please refer to the documentation

The user property allows you to define the user displayed in the sidebar menu. Its an object that can have the following properties:

NameTypeDescription
data.nameStringthe name of the user displayed in the sidebar menu. This is required
data.pictureStringthe URL of the user's avatar displayed in the sidebar menu
logout[RequestInfo, RequestInit?] | Function (server action) | Stringeither a request tuple ([RequestInfo, RequestInit?]) to fetch the logout API, a function to call on logout (server action), or a string to redirect to a logout page