mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add dropdown for links and collection header
This commit is contained in:
@@ -12,10 +12,10 @@ export default defineConfig({
|
||||
sharedData: {
|
||||
errors: (ctx) => ctx.session?.flashMessages.get('errors'),
|
||||
auth: async (ctx) => {
|
||||
await ctx.auth.check();
|
||||
await ctx.auth?.check();
|
||||
return {
|
||||
user: ctx.auth.user,
|
||||
isAuthenticated: ctx.auth.isAuthenticated,
|
||||
user: ctx.auth?.user || null,
|
||||
isAuthenticated: ctx.auth?.isAuthenticated || false,
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user