1 unstable release
Uses old Rust 2015
0.1.0 | Oct 25, 2016 |
---|
#15 in #released
600KB
329 lines
Contains (WOFF font, 120KB) docs/Heuristica-Italic.woff, (WOFF font, 90KB) docs/FiraSans-Medium.woff, (WOFF font, 92KB) docs/FiraSans-Regular.woff, (WOFF font, 56KB) docs/SourceCodePro-Regular.woff, (WOFF font, 56KB) docs/SourceCodePro-Semibold.woff, (WOFF font, 49KB) docs/SourceSerifPro-Bold.woff and 1 more.
Rust Accountkit
Documentation
Overview
rust-accountkit is an implementation of the Facebook Accountkit.
lib.rs
:
rust-accountkit is an implementation of the Facebook Accountkit.
Example
let app_token = format!("AA|{}|{}", "facebook_app_id", "account_kit_client_secret");
let account_kit = AccountKit::with_token(app_token.as_str(), None);
// If you have enabled the Require App Secret setting in your app's dashboards, most calls that accept an account access token as a parameter will now require an additional appsecret_proof parameter to verify that these calls are coming from your own servers.
// app secret proof is a sha256 hash of your access token, using the app secret as the key
let account_kit = AccountKit::with_token(app_token.as_str(), "appsecret_proof_key");
let response = account_kit.authorization_code("authorization_code").retriev();
match response {
Ok(user_token) => println!("{:?}", user_token),
Err(err) => println!("{}", err.to_string())
}
Dependencies
~5MB
~109K SLoC