Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

555 B
Raw Blame
import { AUTH_SCOPE } from '../../../authentication/constants/scope.js'
import { USER_SECRET } from '../constants/user.js'

export interface UserAppPassword {
  name: string
  app: AUTH_SCOPE
  password: string
  expiration: Date | string | null
  currentIp: string | null
  lastIp: string | null
  currentAccess: Date | string | null
  lastAccess: Date | string | null
  createdAt: Date
}

export interface UserSecrets {
  [USER_SECRET.TWO_FA_SECRET]?: string
  [USER_SECRET.RECOVERY_CODES]?: string[]
  [USER_SECRET.APP_PASSWORDS]?: UserAppPassword[]
}