Skip to content
Snippets Groups Projects
account.model.ts 436 B
Newer Older
  • Learn to ignore specific revisions
  • export interface Account extends AccountAttributes {
    
      _id: string
    
    }
    
    export interface AccountAttributes {
    
      account_type: string
      auth: AccountAuthData | AccountOAuthData
      identifier: string
      state?: string | null
    }
    
    export interface AccountAuthData {
      login: string
      credentials_encrypted?: string
      password?: string
    }
    
    export interface AccountOAuthData {
      access_token: string
      refresh_token: string
      scope: string | null
    }