Add credentials field alias

`encoded_auth_blob` is used in the credentials response of the Facebook auth flow
This commit is contained in:
Michael Edwards 2019-03-20 21:17:23 +01:00
parent 2fb901a743
commit b7a2aad17d

View file

@ -22,6 +22,7 @@ pub struct Credentials {
#[serde(deserialize_with = "deserialize_protobuf_enum")] #[serde(deserialize_with = "deserialize_protobuf_enum")]
pub auth_type: AuthenticationType, pub auth_type: AuthenticationType,
#[serde(alias = "encoded_auth_blob")]
#[serde(serialize_with = "serialize_base64")] #[serde(serialize_with = "serialize_base64")]
#[serde(deserialize_with = "deserialize_base64")] #[serde(deserialize_with = "deserialize_base64")]
pub auth_data: Vec<u8>, pub auth_data: Vec<u8>,