-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Bug in code example #11682
Comments
To remove these errors and enable autocompletion for the properties, you need to extend the interface JWT {
name?: string | null
email?: string | null
picture?: string | null
sub?: string
iat?: number
exp?: number
jti?: string
} For this reason, the |
IMO, this should be mentioned in the docs |
This issue was marked with the This means that it is a good candidate for someone interested in contributing to the project, but does not know where to start. Have a look at the Contributing Guide first. This will help you set up your development environment to get started. When you are ready, open a PR, and link back to this issue in the form of adding Please make sure that - if applicable - you add tests for the changes you make. If you have any questions, feel free to ask in the comments below or the PR. Generally, you don't need to Note There is no need to ask for permission "can I work on this?" Please, go ahead if there is no linked PR 🙂 |
Simply linking to https://authjs.dev/getting-started/typescript should be sufficient |
Currently, there is a link that navigates to the TypeScript docs, or your idea would be to add a link in the base description ? |
What is the improvement or update you wish to see?
The code examples listed here: https://authjs.dev/guides/extending-the-session#with-jwt
as a Typescript error.
Is there any context that might help us understand?
The code should be updated to:
Does the docs page already exist? Please link to it.
https://authjs.dev/guides/extending-the-session#with-jwt
The text was updated successfully, but these errors were encountered: