You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because, from the way I read the code, I could reuse it to write my own TokenStorage implementation and keep the same json-token-format as the one used by this library without having to re-implement the code
I think the canonical way so far of writing your own storage backend would be implementing the TokenStorage trait. If you think that using the library implementation of JSON serialization would help in you writing a custom storage type, I'd be open to make these public - just send a PR.
I was wondering if there was a reason for why the 2 structs and their methods, e.g. load_from_file, are not public?
yup-oauth2/src/storage.rs
Lines 185 to 351 in 78b79cf
Because, from the way I read the code, I could reuse it to write my own TokenStorage implementation and keep the same json-token-format as the one used by this library without having to re-implement the code
yup-oauth2/src/storage.rs
Lines 116 to 124 in 78b79cf
Is there something I am missing or not understanding?
The text was updated successfully, but these errors were encountered: