mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
16 lines
576 B
TypeScript
16 lines
576 B
TypeScript
import Email from "./Email";
|
|
import { JSONObject } from "./JSON";
|
|
import Name from "./Name";
|
|
import ObjectID from "./ObjectID";
|
|
|
|
export default interface JSONWebTokenData extends JSONObject {
|
|
userId: ObjectID;
|
|
email: Email;
|
|
name?: Name | undefined;
|
|
isMasterAdmin: boolean;
|
|
statusPageId?: ObjectID | undefined; // for status page logins.
|
|
projectId?: ObjectID | undefined; // for SSO logins.
|
|
isGlobalLogin: boolean; // If this is OneUptime username and password login. This is true, if this is SSO login. Then, this is false.
|
|
sessionId?: ObjectID | undefined;
|
|
}
|