You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am using part of this crate to sign in with an external identity provider (Github, in my case).
When trying to deserialize the authentication response to a firestore_db_and_auth::dto::OAuthResponse, I get the following error:
called `Result::unwrap()` on an `Err` value: RequestError(reqwest::Error { kind: Decode, source: Error("missing field `email`", line: 16, column: 1) })
I can instead deserialize as .text() and see that the fields email, first_name and last_name happen to be null. (While all the other fields are correct). This suggests that the aforementioned OAuthResponse's fields field should be an Option<String>
Describe the bug
I am using part of this crate to sign in with an external identity provider (Github, in my case).
When trying to deserialize the authentication response to a
firestore_db_and_auth::dto::OAuthResponse
, I get the following error:The code I am running is below:
I can instead deserialize as
.text()
and see that the fieldsemail
,first_name
andlast_name
happen to benull
. (While all the other fields are correct). This suggests that the aforementionedOAuthResponse
's fields field should be anOption<String>
The Google Cloud docs do not mention anything:
https://cloud.google.com/identity-platform/docs/reference/rest/v1/accounts/signInWithIdp
The text was updated successfully, but these errors were encountered: