Fix session initialization skipped
This commit is contained in:
parent
5c225c1f25
commit
d5b432a9d2
|
@ -11,9 +11,7 @@ export const useSession = defineStore('session', () => {
|
|||
const { pubkey } = await checkSession()
|
||||
if (pubkey) {
|
||||
console.log('authenticated as', pubkey)
|
||||
return
|
||||
}
|
||||
console.log('unauthenticated')
|
||||
} else console.log('unauthenticated')
|
||||
} catch (err) {
|
||||
console.error('error:', err.reason || err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue