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

Being redirected to login page on refresh #21

Open
luistrcastro opened this issue Nov 26, 2023 · 8 comments
Open

Being redirected to login page on refresh #21

luistrcastro opened this issue Nov 26, 2023 · 8 comments

Comments

@luistrcastro
Copy link

Continuing #17

Hi, sorry for the late response. I'm using your library on a side project which I work on once a month.

I'm not getting any errors on the terminal. In the browser's console, I get this warning:

image

@amrnn90
Copy link
Owner

amrnn90 commented Nov 26, 2023

Are you getting this problem on a fresh install or after making modifications? Please try running the verified middleware on a fresh install of this repo and see if you can reproduce the issue.
Also what is the output of this command npx nuxi info?

@luistrcastro
Copy link
Author

luistrcastro commented Nov 26, 2023

I haven't customized anything major, just some redirect routes. I'll try a fresh install.

image

@luistrcastro
Copy link
Author

It's happening on a fresh clone of the repo as well. I'll try later starting a whole new application and let you know.

@amrnn90
Copy link
Owner

amrnn90 commented Nov 27, 2023

That is weird, are you running your Laravel app normally on localhost:8000?

@fouteox
Copy link

fouteox commented Nov 28, 2023

This message appears with node v18 but disappears with node v20.

@luistrcastro
Copy link
Author

That is weird, are you running your Laravel app normally on localhost:8000?

Yes.

Do you think it may have something to do with Docker? I dockerized my app.

@amrnn90
Copy link
Owner

amrnn90 commented Nov 28, 2023

Well, issue #16 was getting similar console warnings and eventually it turned out he was using a custom domain name for his Laravel app but did not modify the .env file to match it, so make sure you set the NUXT_PUBLIC_BACKEND_URL environment variable correctly.
Otherwise try following @fouteox suggestion and update your Node.js version and see if that helps.

@luistrcastro
Copy link
Author

K, I'll try that. Thanks a millionon for your help

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

3 participants