Skip to content

Define Auth Methods #4

@stresslimit

Description

@stresslimit

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions