OneDriveAPISession is using keyring at the moment and this requires some specifics from the environment that it is running on. Changing to a nice encryption method (like keyring).
one good start: https://cryptography.io/en/latest/fernet/#using-passwords-with-fernet.
The salt could be generated once and stored in the default config file, so it can be changed by the user if necessary.
The password could be some env variable, saved into a file or even as an argument. Remembering that this password/salt is specific per user.