Token Storage
Configure custom token storage for a NativeClient. Custom token storage can be configured
by passing in a complient instance as token_storage, shown below.
from fair_research_login import NativeClient, JSONTokenStorage
app = NativeClient(
client_id='my-client-id',
token_storage=JSONTokenStorage('mytokens.json')
)
- class fair_research_login.MultiClientTokenStorage(filename=None, section=None, permission=None)
Bases:
ConfigParserTokenStorageAn extension on ConfigParserTokenStorage which allows for saving tokens in separate sections based on the passed in client_id used for the app.