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

fix: show auth prompt only once #180

Merged
merged 1 commit into from
Oct 30, 2024
Merged

fix: show auth prompt only once #180

merged 1 commit into from
Oct 30, 2024

Conversation

reneaaron
Copy link
Contributor

Fixes #178

@reneaaron reneaaron changed the title fix: only prompt once fix: show auth prompt only once Oct 30, 2024
@reneaaron reneaaron merged commit 1f5b73a into master Oct 30, 2024
2 checks passed
@reneaaron reneaaron requested a review from im-adithya October 30, 2024 21:47
const handleUnlock = useCallback(async () => {
// The call `signIn()` below triggers a re-render of the component
// and would prompt the user again (before the actual redirect
// happens and the view is replaced)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I was wondering why this happens, I thought it only happens during dev, thanks for the fix 🙌

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What made you think it only happens during dev? Please properly test these things, I guess this was introduced during the eslint update.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It didn't happen when I installed it from the AppStore, I tried to reproduce several times. But it happened during dev.

And I'm not sure if this is after the eslint update as I used to see it even before that...

@im-adithya im-adithya deleted the fix/unlock branch November 18, 2024 12:29
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.

LocalAuth fires twice at startup
2 participants