├── .env ├── .gitignore ├── LICENSE ├── README.md ├── jsconfig.json ├── package.json ├── public ├── favicon.ico ├── index.html └── robots.txt └── src ├── App.jsx ├── _actions ├── index.js └── user.actions.js ├── _components ├── Nav.jsx ├── PrivateRoute.jsx └── index.js ├── _helpers ├── fake-backend.js ├── fetch-wrapper.js ├── history.js └── index.js ├── _state ├── auth.js ├── index.js └── users.js ├── home ├── Home.jsx └── index.js ├── index.css ├── index.js └── login ├── Login.jsx └── index.js /.env: -------------------------------------------------------------------------------- 1 | REACT_APP_API_URL=http://localhost:4000 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/README.md -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/jsconfig.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/public/index.html -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/App.jsx -------------------------------------------------------------------------------- /src/_actions/index.js: -------------------------------------------------------------------------------- 1 | export * from './user.actions' -------------------------------------------------------------------------------- /src/_actions/user.actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_actions/user.actions.js -------------------------------------------------------------------------------- /src/_components/Nav.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_components/Nav.jsx -------------------------------------------------------------------------------- /src/_components/PrivateRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_components/PrivateRoute.jsx -------------------------------------------------------------------------------- /src/_components/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_components/index.js -------------------------------------------------------------------------------- /src/_helpers/fake-backend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_helpers/fake-backend.js -------------------------------------------------------------------------------- /src/_helpers/fetch-wrapper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_helpers/fetch-wrapper.js -------------------------------------------------------------------------------- /src/_helpers/history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_helpers/history.js -------------------------------------------------------------------------------- /src/_helpers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_helpers/index.js -------------------------------------------------------------------------------- /src/_state/auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_state/auth.js -------------------------------------------------------------------------------- /src/_state/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_state/index.js -------------------------------------------------------------------------------- /src/_state/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/_state/users.js -------------------------------------------------------------------------------- /src/home/Home.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/home/Home.jsx -------------------------------------------------------------------------------- /src/home/index.js: -------------------------------------------------------------------------------- 1 | export * from './Home'; -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | a { cursor: pointer; } 2 | 3 | .app-container { 4 | min-height: 350px; 5 | } 6 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/index.js -------------------------------------------------------------------------------- /src/login/Login.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cornflourblue/react-recoil-jwt-authentication-example/HEAD/src/login/Login.jsx -------------------------------------------------------------------------------- /src/login/index.js: -------------------------------------------------------------------------------- 1 | export * from './Login'; --------------------------------------------------------------------------------