Web API for code.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
267 B

  1. export interface Session {
  2. id: Buffer
  3. createdAt: Date
  4. validUntil: Date
  5. userId: Buffer
  6. }
  7. export interface CreateSessionData extends Omit<Session, 'id' | 'createdAt' | 'validUntil'> {
  8. }
  9. export interface LoginUserFormData {
  10. username: string;
  11. password: string;
  12. }