authnz-client-sdk 0.2.4

Authnz client SDK.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Read from LocalStorage
pub fn get_from_storage(key: &str) -> Option<String> {
  web_sys::window().unwrap().local_storage().unwrap().unwrap().get_item(key).unwrap()
}

/// Write into LocalStorage
pub fn put_in_storage(key: &str, val: &str) {
  web_sys::window()
    .unwrap()
    .local_storage()
    .unwrap()
    .unwrap()
    .set_item(key, val)
    .unwrap();
}