Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Centralise logic for redirecting to login when user is not logged in #158

Open
robbieaverill opened this issue Nov 24, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@robbieaverill
Copy link
Contributor

On the account page, and the order view page, we have a verifyAuth method which runs when the component mounts. This checks that the user is logged in and redirects them away if not.

We can convert this into a HOC or something to centralise this logic.

@robbieaverill robbieaverill added the enhancement New feature or request label Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant