Closed SpangleLabs closed 4 years ago
Should there be an option to read from a string directly? If a user wants to decide how to store a JWT. Since there is no standard way to do this, you don't have to force storing into a file.
Hmmm.. good point, could just add an optional jwt=None
parameter, then move around some stuff in _login(), does that sound good to you?
I don't fully get it. Do you want to make a generic jwt
argument? How would you distinguish between a file path string and a string with JWT? One option I see is to accept only JWT string and the user is responsible for reading from file. Or doing some string parsing to detect a type.
How's this looking now?
Looks good to me
Which will be read and checked if given, and then the new jwt will be written to.