Typescript Module Augmentation example in documentation is wrong?
What is the improvement or update you wish to see?
There's a example on the website to get typescript to behave properly with the custom User etc, but i think it is wrong because the example did not work for me, but i don't know if it is a svelte issue, or another thing.
Is there any context that might help us understand?
Augmenting the "@auth/core" module does nothing to the interfaces, you need to actually augment the "@auth/core/types" to make it work properly.
With augmentation to the "@auth/core" it does not know that the user has the property of role.
But with augmentation of the "@auth/core/types" it works
Does the docs page already exist? Please link to it.
https://authjs.dev/getting-started/typescript
looks like the same with this issue #9253
looks like the same with this issue #9253
So this is not a svelte specific issue? Just that the docs need to be updated then?
Closing, this has been fixed. Thanks for the PR @Huijiro