Log out authed user public key
This commit is contained in:
parent
1b41f038c7
commit
cc3a605f42
1 changed files with 6 additions and 0 deletions
|
|
@ -99,6 +99,12 @@ const cb = (data, key) => {
|
||||||
if (typeof ack.err === 'string') {
|
if (typeof ack.err === 'string') {
|
||||||
throw new Error(ack.err)
|
throw new Error(ack.err)
|
||||||
} else if (typeof ack.pub === 'string' || typeof user._.sea === 'object') {
|
} else if (typeof ack.pub === 'string' || typeof user._.sea === 'object') {
|
||||||
|
console.log(`\n`)
|
||||||
|
console.log(`public key:`)
|
||||||
|
console.log(`\n`)
|
||||||
|
console.log(ack.pub || user._.sea.pub)
|
||||||
|
console.log(`\n`)
|
||||||
|
|
||||||
// clock skew
|
// clock skew
|
||||||
await new Promise(res => setTimeout(res, 2000))
|
await new Promise(res => setTimeout(res, 2000))
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue