pub async fn get_nonce(
    conn: &mut PoolConnection<Postgres>,
    uid: &str
) -> Result<Nonce>