2020-10-18 23:45:06 +00:00
|
|
|
interface Session {
|
|
|
|
expires: Date;
|
|
|
|
token: string;
|
|
|
|
lifetime: number;
|
|
|
|
browser: string;
|
|
|
|
platform: string;
|
|
|
|
}
|
|
|
|
interface User {
|
|
|
|
userid: string;
|
|
|
|
display_name: string;
|
|
|
|
firstname: string;
|
|
|
|
lastname: string;
|
|
|
|
mail: string;
|
2020-10-19 14:49:40 +00:00
|
|
|
roles: Array<Role>;
|
2020-10-18 23:45:06 +00:00
|
|
|
}
|
2020-10-19 14:49:40 +00:00
|
|
|
type Permission = string;
|
2020-10-18 23:45:06 +00:00
|
|
|
interface Role {
|
|
|
|
name: string;
|
2020-10-19 14:49:40 +00:00
|
|
|
permissions: Array<Permission>;
|
2020-10-18 23:45:06 +00:00
|
|
|
}
|