2022-08-26 06:41:47 +12:00
|
|
|
export interface AuthToken {
|
|
|
|
userId: string
|
|
|
|
tenantId: string
|
|
|
|
sessionId: string
|
|
|
|
}
|
2022-09-06 23:25:57 +12:00
|
|
|
|
|
|
|
export interface CreateSession {
|
|
|
|
sessionId: string
|
|
|
|
tenantId: string
|
|
|
|
csrfToken?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Session extends CreateSession {
|
|
|
|
userId: string
|
|
|
|
lastAccessedAt: string
|
|
|
|
createdAt: string
|
|
|
|
// make optional attributes required
|
|
|
|
csrfToken: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface SessionKey {
|
|
|
|
key: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface ScannedSession {
|
|
|
|
value: Session
|
|
|
|
}
|