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()
|
const { pubkey } = await checkSession()
|
||||||
if (pubkey) {
|
if (pubkey) {
|
||||||
console.log('authenticated as', pubkey)
|
console.log('authenticated as', pubkey)
|
||||||
return
|
} else console.log('unauthenticated')
|
||||||
}
|
|
||||||
console.log('unauthenticated')
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('error:', err.reason || err)
|
console.error('error:', err.reason || err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue