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]