Skip to content

Commit d03125a

Browse files
authored
docs(ts): mention module augmentation on callbacks (#2541)
1 parent 66d16f8 commit d03125a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

www/docs/configuration/callbacks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ callbacks: {
188188
...
189189
```
190190
191+
If you're using TypeScript, you will want to [augment the session type](/getting-started/typescript#module-augmentation).
192+
191193
:::tip
192194
When using JSON Web Tokens the `jwt()` callback is invoked before the `session()` callback, so anything you add to the
193195
JSON Web Token will be immediately available in the session callback, like for example an `access_token` from a provider.

0 commit comments

Comments
 (0)