Comments (1)
Hi, glad you find the boilerplate useful!
The app is automatically authenticated when you load it, so if you manually go to /posts you will be indeed be authenticated. This is to "fake" the flow of loading localStorage tokens and sign you in automatically on load (in the simplest way possible). So the idea is that you change the authenticate function to actually go to an API endpoint to verify tokens and then take an action based on the response (authenticated or not authenticated). I might implement a login page soon though, I can keep the posts menu option there even when not signed i,n and then redirect to the login on click, that way you can see the login flow as well without reloading the page and being automatically authenticated. Thanks for the feedback! :)
from react-mobx-react-router4-boilerplate.
Related Issues (20)
- ActiveLink class is not updated on route change HOT 1
- Can't resolve './ui/Activelink' HOT 2
- MobX warning in /posts HOT 1
- routes not loading in preview HOT 3
- How to use RouterStore HOT 2
- Compile error
- display images HOT 1
- use Switch , Component unchanging
- The UI not update when hot-reload #3 HOT 1
- error on git clone and npm install HOT 1
- Lazy-Route import error HOT 1
- Is this universal? HOT 1
- Huge devtools in prod build HOT 1
- Router not working? HOT 4
- New syntax for the image-file-loader in webpack2 HOT 1
- npm run build white screen fresh download
- Update react 16.0.0
- the stores are not even used here. Why import? I am super confused lol HOT 1
- Uncaught TypeError: Cannot assign to read only property 'render' of object '#<ProxyComponent>'
- no such package available : @std/esm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-mobx-react-router4-boilerplate.