Fix session initialization skipped

This commit is contained in:
ekzyis 2023-11-07 14:12:54 +01:00
parent 5c225c1f25
commit d5b432a9d2
1 changed files with 1 additions and 3 deletions

View File

@ -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)
}