Skip to content

Check auth in public pages

Grigor Malo requested to merge check-auth-in-public-pages into master

Closes #6 (closed)

  • create AuthWrapper to wrap pages with a component that always runs query to get current user
  • remove authentication query from RequireAuth: only check for token to decide if user is authenticated
  • create AuthPage to encapsulate both AuthWrapper and PageLayout in one component
  • save default current user query in helpers fodler
  • modify the dev app to add example of protected routes and a login page*

*Currently login won't work in dev app because the graphql endpoint doesn't have such an entry

Merge request reports