chillihero
chillihero
Explore posts from servers
TTCTheo's Typesafe Cult
Created by chillihero on 2/2/2024 in #questions
Difference between profile, user and account type authjs
0.0
4 replies
TTCTheo's Typesafe Cult
Created by Sturlen on 2/5/2024 in #questions
How do you safely store your API keys?
everything you need is free :)
7 replies
TTCTheo's Typesafe Cult
Created by Sturlen on 2/5/2024 in #questions
How do you safely store your API keys?
you could consider using a service like doppler! https://www.doppler.com/ I am using it & loving it!
7 replies
TTCTheo's Typesafe Cult
Created by sachin on 2/2/2024 in #questions
Update Next-atuh version in T3 stack
I don’t actually know but I assume that they will once the v5 is out of beta
5 replies
TTCTheo's Typesafe Cult
Created by sachin on 2/2/2024 in #questions
Update Next-atuh version in T3 stack
Hi there! Upgrading to v5 will break things, that’s why there is a upgrading guide! find it here
5 replies
TTCTheo's Typesafe Cult
Created by chillihero on 2/2/2024 in #questions
Difference between profile, user and account type authjs
okay, so I found the following
/**
* When `trigger` is `"signIn"` or `"signUp"`, it will be a subset of {@link JWT},
* `name`, `email` and `image` will be included.
*
* Otherwise, it will be the full {@link JWT} for subsequent calls.
*/
token: JWT
/**
* Either the result of the {@link OAuthConfig.profile} or the {@link CredentialsConfig.authorize} callback.
* @note available when `trigger` is `"signIn"` or `"signUp"`.
*
* Resources:
* - [Credentials Provider](https://authjs.dev/reference/core/providers/credentials)
* - [User database model](https://authjs.dev/reference/core/adapters#user)
*/
user: User | AdapterUser
/**
* Contains information about the provider that was used to sign in.
* Also includes {@link TokenSet}
* @note available when `trigger` is `"signIn"` or `"signUp"`
*/
account: A | null
/**
* The OAuth profile returned from your provider.
* (In case of OIDC it will be the decoded ID Token or /userinfo response)
* @note available when `trigger` is `"signIn"`.
*/
profile?: P
/**
* When `trigger` is `"signIn"` or `"signUp"`, it will be a subset of {@link JWT},
* `name`, `email` and `image` will be included.
*
* Otherwise, it will be the full {@link JWT} for subsequent calls.
*/
token: JWT
/**
* Either the result of the {@link OAuthConfig.profile} or the {@link CredentialsConfig.authorize} callback.
* @note available when `trigger` is `"signIn"` or `"signUp"`.
*
* Resources:
* - [Credentials Provider](https://authjs.dev/reference/core/providers/credentials)
* - [User database model](https://authjs.dev/reference/core/adapters#user)
*/
user: User | AdapterUser
/**
* Contains information about the provider that was used to sign in.
* Also includes {@link TokenSet}
* @note available when `trigger` is `"signIn"` or `"signUp"`
*/
account: A | null
/**
* The OAuth profile returned from your provider.
* (In case of OIDC it will be the decoded ID Token or /userinfo response)
* @note available when `trigger` is `"signIn"`.
*/
profile?: P
4 replies