Skip to content

Is there a reason you chose to store the token on an in-memory variable as opposed to creating an AuthContext that maintained the token using useState? #26

@connor-odoherty

Description

@connor-odoherty

My knee-jerk reaction is to wrap everything in an AuthenticatedContext that updates the token using useState and exposes all the helper methods that way. Are there any downsides or limitations to that approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions