Property 'surname' does not exist on type ...

I added custom surname field to user, added it inside additional fields in config but when using {session.user.surname} i get the error above even though surname clearly exists and is correctly displayed on the page
2 Replies
anrius
anrius5w ago
you sure you configured it correctly?
Ruslan
RuslanOP4w ago
I think, I added additional fields in config, tried custom session plugin, that didn't help, I suppose I missed something but I am not sure what Yes, I have used inferAdditionalFirlds in authclient config, but still get the error

Did you find this page helpful?