File size: 789 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
/**
* Currently logged in admin.
*
* ### Usage with TypeScript
*
* ```typescript
* import { CurrentAdmin } from 'adminjs'
* ```
*
* @alias CurrentAdmin
* @memberof AdminJS
*/
export interface CurrentAdmin {
/**
* Admin has one required field which is an email
*/
email: string;
/**
* Optional title/role of an admin - this will be presented below the email
*/
title?: string;
/**
* Optional url for an avatar photo
*/
avatarUrl?: string;
/**
* Id of your admin user
*/
id?: string;
/**
* Optional ID of theme to use
*/
theme?: string;
/**
* Extra metadata specific to given Auth Provider
*/
_auth?: Record<string, any>;
/**
* Also you can put as many other fields to it as you like.
*/
[key: string]: any;
}
|