0
votes

I'm trying to sign in with OAuth credentials which involves issuing an HTTP POST request to the Auth verifyAssertion endpoint. How would I go about doing this syntactically? I'm trying to follow this firebase documentation but they use curls for the examples.

https://firebase.google.com/docs/reference/rest/auth/#section-sign-in-with-oauth-credential

The endpoint is https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key=[API_KEY]

1

1 Answers

0
votes

You can either choose the native fetch api with

window.fetch('https://url-you-want-to-post-to.com/', {method: 'POST', body: { //body data } })

or you can use a third-party library like axios (although you need to npm install it first and then import it)