firebase / firebase/snippets-web

How to prompt user for credentials?

Open
#269 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
802
Forks
285
PR merge metrics
No merged PRs in 30d

Description

`manage.js` has
```js
const user = firebase.auth().currentUser;

// TODO(you): prompt the user to re-provide their sign-in credentials
const credential = promptForCredentials();

user.reauthenticateWithCredential(credential).then(() => {
// User re-authenticated.
}).catch((error) => {
// An error ocurred
// ...
});
```

But what does it mean by prompt the user to re-provide credentials? Does it mean their email and password or...?

Contributor guide

Open the contributing guide

Research direction

Read the reauthentication example in manage.js and trace how promptForCredentials is described or used. Clarify what credentials the snippet expects and what a user should provide, then verify that the updated explanation matches the reauthenticateWithCredential flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, javascript
Domain
authentication, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.