Files
arthome/types/auth.d.ts
2024-08-25 18:33:37 +02:00

37 lines
709 B
TypeScript

// auth.d.ts
import type { Subscription } from '~~/types/types'
declare module '#auth-utils' {
interface User {
id: number
name: string
username: string
email: string
avatar: string | null
githubId?: number | null
googleId?: string | null
description: string
private: boolean
language: string
location: string
subscription: Subscription
}
interface UserSession {
id: number
name: string
username: string
email: string
avatar: string | null
githubId?: number | null
googleId?: string | null
description: string
private: boolean
language: string
location: string
subscription: Subscription
}
}
export {}