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

[🐛] Support Auth Emulator #4551

Closed
jonathanroze opened this issue Nov 14, 2020 · 2 comments · Fixed by #4552
Closed

[🐛] Support Auth Emulator #4551

jonathanroze opened this issue Nov 14, 2020 · 2 comments · Fixed by #4552
Labels
plugin: authentication Firebase Authentication resolution: fixed A fix has been merged into main. type: enhancement Implements a new Feature

Comments

@jonathanroze
Copy link

Hi,

On the documentation it's explain how to use firestore locally by using FireStore Emulator but I can't find anything about use Auth locally.

It's a missing part in docs or it's just not possible ? Thanks

@jonathanroze jonathanroze added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Nov 14, 2020
@mikehardy
Copy link
Collaborator

Just merged auth emulator support, will be in the next release which should be tomorrow

You can see examples of how to use it by examining our test app:

https://github.com/invertase/react-native-firebase/blob/master/packages/auth/e2e/helpers.js
https://github.com/invertase/react-native-firebase/blob/master/.github/workflows/scripts/start-firebase-emulator.sh

const { clearAllUsers, disableUser, getLastOob, resetPassword } = require('./helpers');
describe('auth()', () => {
before(async () => {
await clearAllUsers();
await firebase.auth().createUserWithEmailAndPassword(TEST_EMAIL, TEST_PASS);
const disabledUserCredential = await firebase
.auth()
.createUserWithEmailAndPassword(DISABLED_EMAIL, DISABLED_PASS);
await disableUser(disabledUserCredential.user.uid);
});
beforeEach(async () => {
if (firebase.auth().currentUser) {
await firebase.auth().signOut();
await Utils.sleep(50);
}
});

@mikehardy mikehardy changed the title [🐛] Bug Report Title - Auth Emulator [🐛] Support Auth Emulator Nov 17, 2020
@mikehardy mikehardy added resolution: fixed A fix has been merged into main. plugin: authentication Firebase Authentication Type: Feature Request type: enhancement Implements a new Feature and removed help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Nov 17, 2020
@mikehardy mikehardy linked a pull request Nov 17, 2020 that will close this issue
8 tasks
@mikehardy
Copy link
Collaborator

v10, just released, has auth emulator support! Enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: authentication Firebase Authentication resolution: fixed A fix has been merged into main. type: enhancement Implements a new Feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants