Skip to content

🐛 [firebase_auth] Test for requires-recent-login throw programmatically #11730

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

Closed
FMorschel opened this issue Oct 18, 2023 · 2 comments
Closed
Labels
plugin: auth type: enhancement New feature or request

Comments

@FMorschel
Copy link

What feature would you like to see?

On firebase_auth there is a FirebaseAuthException with code "requires-recent-login". I believe it would be useful to have a method to test if this would be thrown on trying to work with security-sensitive actions.

For example, with firebase_ui_auth, when I call EmailSignUpDialog it throws the warning there but I have no intelligible way of showing a new page for my user to actually reauthenticate and it doesn't do it by itself. I even created #11729 to solve my problem in another way, but I do believe this should be testable by the programmer anyway.

@FMorschel FMorschel added Needs Attention This issue needs maintainer attention. type: enhancement New feature or request labels Oct 18, 2023
@darshankawar darshankawar added triage Issue is currently being triaged. plugin: auth and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Oct 19, 2023
@Lyokone
Copy link
Contributor

Lyokone commented Oct 20, 2023

Hi @FMorschel, since this issue is related with https://github.com/firebase/FirebaseUI-Flutter could you reopen it on this repository? Thanks

@FMorschel
Copy link
Author

Done at firebase/FirebaseUI-Flutter#158

@firebase firebase locked and limited conversation to collaborators Nov 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: auth type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants