here is my inertia.ts
sharedData: { greetings: 'bonjour', user: (ctx) => ctx.auth.user, errors: (ctx) => ctx.session?.flashMessages.get('errors'), },
Copied!
Here is a page:
interface Props extends PageProps {} const SigninPage = () => { const { errors, greetings, user } = usePage<Props>().props console.log({ user, errors, greetings }) }
Copied!
I get the greetings
but not errors
or user