Commit d84c361
docs(express): add TypeScript guide for custom session properties (#12590)
* docs(express): add TypeScript guide for custom session properties
docs(express): add TypeScript guide for custom session properties
- Added detailed documentation for extending session types in Express.js
- Included code examples for module augmentation and session callback
- Explained how to add custom properties like `id` to the session object
- Aligned with Auth.js TypeScript best practices and JWT session strategy
This update helps Express.js users integrate custom session properties
with TypeScript support, following the framework's conventions.
* Update docs/pages/getting-started/typescript.mdx
---------
Co-authored-by: Thang Vu <[email protected]>1 parent b0f1538 commit d84c361
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
157 | 191 | | |
158 | 192 | | |
159 | 193 | | |
| |||
0 commit comments