-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Need to decide what we move from the auth module into this library.
Definitely API calls & URIs, but also JWT storage?
Q: should auth methods return JWT, or also deal with storing and retrieving jwt from local storage? I'm tempted to say it basically returns true/false and does all localStorage work for you.
If we do want to make it super easy to use library, we should probably at least provide the option to have the library magically take care of this for the developer. That means actually calling .then() on the fetch response. Is this cool? Possible? Do we need top-level methods for login vs simpleLogin so that developers can implement their own auth UX?