mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
import { Token, User } from "@prisma/client"
|
|
|
|
/**
|
|
* Serializable Telegram login data with technical information.
|
|
*/
|
|
export type TelegramLoginData = {
|
|
id: number
|
|
first_name: string
|
|
last_name?: string
|
|
username?: string
|
|
photo_url?: string
|
|
lang?: string
|
|
auth_date: number
|
|
hash: string
|
|
}
|
|
|
|
/**
|
|
* Login data for a specific Festa user.
|
|
*/
|
|
export type FestaLoginData = Token & {user: User}
|