This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use openssl::sign::Verifier; | |
use openssl::rsa::Rsa; | |
use openssl::pkey::PKey; | |
use openssl::hash::MessageDigest; | |
use serde_json::{self as json, Value as Json}; | |
pub fn firebase_id_token (headers: BTreeMap<&str, &str>, mut stream: &mut BufStream<TcpStream>) -> Result<(), String> { | |
#[derive(Deserialize, Debug)] | |
struct Post {firebase_id_token: String} |