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

Visiting logged in user's settings or profile logs them out #42

Open
sypion opened this issue May 28, 2023 · 6 comments
Open

Visiting logged in user's settings or profile logs them out #42

sypion opened this issue May 28, 2023 · 6 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@sypion
Copy link

sypion commented May 28, 2023

Whenever a logged-in user attempts to visit Settings or their Posts page, they are logged out. I also can't view/create API tokens as a result.

@Ynd21
Copy link

Ynd21 commented May 30, 2023

Interesting! That sounds like an incorrect setup somewhere with your reverse proxy. I'm using Traefik and do not experience that issue. Can you provide any additional insight into your setup and how it's running?

@sypion
Copy link
Author

sypion commented May 30, 2023

Hi @Ynd21! I'm using Nginx Proxy Manager and set up two custom locations for /api and /_. Doing so seems to work properly and leads to the correct URL. Screenshots:
image
image

Additionally, no errors appear on the logs of either container.

@Dan6erbond
Copy link
Owner

What auth methods do you have enabled?

@sypion
Copy link
Author

sypion commented May 30, 2023

Just OAuth2.

@Dan6erbond
Copy link
Owner

I doubt that this is causing the issue, but could you add /_next as a forward to the frontend? It's not quite ideal, but because mobile browsers remove the trailing slash you need to forward /_ to the PocketBase UI, but /_next since that's where assets and some JSONs are hosted.

As for the other issue I'll have to look into it. Can you provide any console logs? You can open the Developer Tools with F12 and check out the network tab for additional debugging information as well.

@Dan6erbond Dan6erbond self-assigned this May 31, 2023
@Dan6erbond Dan6erbond added bug Something isn't working help wanted Extra attention is needed labels May 31, 2023
@sypion
Copy link
Author

sypion commented May 31, 2023

Apologies for the delay. Adding /_next as a forward does not make a difference, unfortunately.

Here are the console logs I receive when navigating to my user's settings:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants