amark / gun

An open source cybersecurity protocol for syncing decentralized graph data.
https://gun.eco/docs
Other
18.05k stars 1.16k forks source link

Typescript: user.auth(pair) is broken #1219

Closed code3z closed 2 years ago

code3z commented 2 years ago
const pair = await SEA.pair()
user.auth(pair)

throws a typescript error

amark commented 2 years ago

https://github.com/amark/gun/issues/1218#issuecomment-1063646160

orimay commented 2 years ago

It seems to work:

const gun = new Gun()
gun.user().auth(await Gun.SEA.pair());

Straight from Gun TS auth test