i want to logout the user to NON inertia url. so i have to pass the csrf token
to a form with post methd.
<!-- Authentication -->
<form
method="POST"
:action="route('logout')"
>
<input type="hidden" name="_token" :value="$page.props.csrf_token">
<jet-dropdown-link
colors="text-red-700 focus:bg-gray-200 hover:bg-gray-200"
as="button"
>
logout
</jet-dropdown-link>
</form>
but it gives me a 419 page expired
response.
when i console.log("this.$page.props.csrf_token")
it shows undefined
.
what should i do?