-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathnext-auth.d.ts
69 lines (66 loc) · 1.87 KB
/
next-auth.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import "next-auth"
import { DefaultSession, DefaultUser } from "next-auth"
import { JWT } from "next-auth/jwt"
declare module "next-auth" {
interface Session {
user: {
id: string
has_onboarded: boolean
hqx_newsletter: boolean
oep_accepted: boolean
research_accepted : boolean
have_seen_newsletter: boolean
automatic_reconnect: boolean
twitter_id?: string | null
twitter_username?: string | null
twitter_image?: string | null
mastodon_id?: string | null
mastodon_username?: string | null
mastodon_image?: string | null
mastodon_instance?: string | null
bluesky_id?: string | null
bluesky_username?: string | null
bluesky_image?: string | null
} & DefaultSession["user"]
}
interface User extends DefaultUser {
id: string
has_onboarded: boolean
hqx_newsletter: boolean
oep_accepted: boolean
research_accepted : boolean
have_seen_newsletter: boolean
automatic_reconnect: boolean
twitter_id?: string | null
twitter_username?: string | null
twitter_image?: string | null
mastodon_id?: string | null
mastodon_username?: string | null
mastodon_image?: string | null
mastodon_instance?: string | null
bluesky_id?: string | null
bluesky_username?: string | null
bluesky_image?: string | null
}
}
declare module "next-auth/jwt" {
interface JWT {
id: string
has_onboarded: boolean
hqx_newsletter: boolean
oep_accepted: boolean
research_accepted : boolean
have_seen_newsletter: boolean
automatic_reconnect: boolean
twitter_id?: string
twitter_username?: string
twitter_image?: string
mastodon_id?: string
mastodon_username?: string
mastodon_image?: string
mastodon_instance?: string | null
bluesky_id?: string
bluesky_username?: string
bluesky_image?: string
}
}