next-auth
c580f0db - docs: fix `session.user` is possibly `undefined`. (#7058)

Commit
2 years ago
docs: fix `session.user` is possibly `undefined`. (#7058) fixed the code snippet for the example to consume session via hooks. Threw an error earlier stating 'session.user' is possibly 'undefined'.
Author
Parents
Loading