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

OIDC - Specifically check for 401 status before resetting #3500

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

cmintey
Copy link
Contributor

@cmintey cmintey commented Apr 19, 2024

What type of PR is this?

  • bug

What this PR does / why we need it:

Nightly image does not allow signing into Mealie on mobile (iPhone) devices, but web (multiple browsers) works just fine

Which issue(s) this PR fixes:

Fixes #3499

Special notes for your reviewer:

Pulled down the nightly image this morning and found I couldn't log in on my mobile device (iPhone), but it was fine on web (multiple browsers). I assumed it was due to the previous fix for the infinite redirect. Through some debugging, I tracked the issue down to this one specific line where we reset the auth if there is an error. I honestly think there was some sort of race condition, but adding a check to look if the response was specifically a 401 before resetting seems to have fixed the problem.

Testing

Manual testing on mobile device and web

@michael-genson michael-genson enabled auto-merge (squash) April 19, 2024 14:44
@michael-genson michael-genson merged commit 2b6d781 into mealie-recipes:mealie-next Apr 19, 2024
10 checks passed
@cmintey cmintey deleted the oidc-mobie-fix branch April 20, 2024 23:57
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

Successfully merging this pull request may close these issues.

[BUG] - OIDC Auth not working on mobile devices
2 participants