how to fix next auth ts error?

how to fix this ?
3 Replies
Josh Goldberg 💖
This is a typescript-eslint complaint (so, the linter, not TypeScript itself). Have you tried reading the docs linked by the complaint to understand why it's unhappy? https://typescript-eslint.io/rules/no-misused-promises/
no-misused-promises | typescript-eslint
Disallow Promises in places not designed to handle them.
JulieCezar
JulieCezar•2y ago
<button onClick={async () => { await signIn() }>Sign in</button>
<button onClick={async () => { await signIn() }>Sign in</button>
try this
Çağlar
Çağlar•2y ago
void () => signIn()
void () => signIn()

Did you find this page helpful?