Skip to content

Conversation

@HassanBahati
Copy link
Member

@HassanBahati HassanBahati commented Oct 8, 2024

this PR adds useSignInWithCredentialMutation hook

@docs-page
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.

"@vitest/coverage-istanbul": "^2.0.5",
"firebase": "^10.13.1",
"happy-dom": "^15.7.3",
"jsonwebtoken": "^9.0.2",
Copy link
Member 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

@HassanBahati HassanBahati requested a review from Ehesp October 8, 2024 08:09
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

Copy link
Member Author

Choose a reason for hiding this comment

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

i've enhanced this with logging as well.

@HassanBahati HassanBahati requested a review from Ehesp October 28, 2024 09:07
@Ehesp Ehesp merged commit 13f336a into invertase:next Dec 4, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants