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

Add useSignInWithCredentialMutation #114

Open
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

HassanBahati
Copy link
Collaborator

@HassanBahati HassanBahati commented Oct 8, 2024

this PR adds useSignInWithCredentialMutation hook

Copy link

docs-page bot commented Oct 8, 2024

To view this pull requests documentation preview, visit the following URL:

docs.page/invertase/react-query-firebase~114

Documentation is deployed and generated using docs.page.

"firebase": "^10.13.1",
"happy-dom": "^15.7.3",
"jsonwebtoken": "^9.0.2",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

introduced jsonwebtoken because while trying to generate an id token thats required by GoogleAuthProvider.credential ,other formats were being rejected with the error below
image

expect(error.code).toBe(expectedCode);
} else {
throw new Error(
"Expected a Firebase error, but received a different type."
Copy link
Member

Choose a reason for hiding this comment

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

Probably worth logging the error here too otherwise it'll be tricky to debug in CI

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.

2 participants