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.
29 lines
611 B
29 lines
611 B
/**
|
|
* Type augmentation for nuxt-auth-utils UserSession
|
|
*
|
|
* Extends the User type with additional properties from our database schema
|
|
*/
|
|
|
|
declare module '#auth-utils' {
|
|
interface User {
|
|
id: string
|
|
experimentaId: string | null
|
|
email: string
|
|
firstName: string
|
|
lastName: string
|
|
salutation: 'male' | 'female' | 'other' | null
|
|
dateOfBirth: Date | string | null
|
|
street: string | null
|
|
postCode: string | null
|
|
city: string | null
|
|
countryCode: string | null
|
|
}
|
|
|
|
interface UserSession {
|
|
user: User
|
|
accessToken?: string
|
|
loggedInAt?: string
|
|
}
|
|
}
|
|
|
|
export {}
|
|
|