Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't access property "user", _ctx.$page.props.auth is undefined #53

Open
REJack opened this issue Jul 12, 2021 · 3 comments
Open

can't access property "user", _ctx.$page.props.auth is undefined #53

REJack opened this issue Jul 12, 2021 · 3 comments

Comments

@REJack
Copy link

REJack commented Jul 12, 2021

Describe the bug
I complety installed a fresh Laravel v8.0.8 with Jetstream and Jetstrap (w/o Teams; w/ Breeze),
if I try to open the page /, I get a error Uncaught (in promise) TypeError: can't access property "user", _ctx.$page.props.auth is undefined.

Expected behavior
I excepted a redirect to the login.

Screenshots
grafik

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: chrome, firefox & edge
  • Version: latest

Is there any trick that I need to do?

@tsommie
Copy link
Contributor

tsommie commented Jul 14, 2021

This / is the home page so you shouldn't be redirected, question is why is user exposed on that page without an Auth::check()? Ok, am on it, quick question: are you using the default template or a preset, Vue or livewire?

@REJack
Copy link
Author

REJack commented Jul 14, 2021

Default Template from Jetstrap or Jetstream?

I installed it like your readme infos, I've used php artisan jetstream:install inertia& php artisan jetstrap:swap inertia.

@REJack
Copy link
Author

REJack commented Jul 14, 2021

I fixed it with removing .auth, after this it worked. Idk I use Laravel 8 may this is the conflict producer 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants