how to fix next auth ts error?

how to fix this ?
3 Replies
JoshuaKGoldberg
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
JulieCezar2y ago
<button onClick={async () => { await signIn() }>Sign in</button>
<button onClick={async () => { await signIn() }>Sign in</button>
try this
Çağlar
Çağlar2y ago
void () => signIn()
void () => signIn()
Want results from more Discord servers?
Add your server