feat: add better provider support, icons, regen, and a lot more
This commit is contained in:
@@ -8,10 +8,16 @@ export default defineNuxtPlugin({
|
||||
|
||||
nuxtApp.hook('app:mounted', async () => {
|
||||
if (!session.value) {
|
||||
await fetchSession();
|
||||
const result = await fetchSession();
|
||||
if (!result.ok) {
|
||||
console.warn('Failed to fetch session:', result.error);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!session.value) return;
|
||||
if (!session.value) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ('startSession' in triplit) {
|
||||
await triplit.startSession(session.value.token);
|
||||
|
||||
Reference in New Issue
Block a user