We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Since a helper function for firestore.rules would look like
firestore.rules
function emailVerified() { return request.auth.token.email_verified; }
I assumed the setup with this quickstart would look like this
const bob = getAuthedFirestore({ uid: "bob", token: { email_verified: true }, });
Any guidance would help very much.
The text was updated successfully, but these errors were encountered:
@ViktorUvarov I recently submitted a change to @firebase/rules-unit-testing to make this a lot easier: firebase/firebase-js-sdk#3876
@firebase/rules-unit-testing
Once the next release comes out (they usually happen weekly) you can do something like this:
const firebase = require('@firebase/rules-unit-testing`); const app = firebase.initializeTestApp({ projectId: 'foo', auth: { uid: "bob", email: "bob@example.com", email_verified: true } );
Sorry, something went wrong.
No branches or pull requests
Since a helper function for
firestore.rules
would look likeI assumed the setup with this quickstart would look like this
Any guidance would help very much.
The text was updated successfully, but these errors were encountered: