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:
Name | Type | Description |
---|---|---|
data.name | String | the name of the user displayed in the sidebar menu. This is required |
data.picture | String | the URL of the user's avatar displayed in the sidebar menu |
logout | [RequestInfo, RequestInit?] | Function (server action) | String | either 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 |