├── .editorconfig ├── .eslintrc.js ├── .gitignore ├── README.md ├── components └── Layout.js ├── config.js ├── demo.gif ├── next.config.js ├── package.json ├── pages ├── _app.js ├── index.js ├── signin.js ├── signup.js └── whoami.js ├── redux ├── actions │ ├── authActions.js │ └── index.js ├── index.js ├── reducers │ ├── authReducer.js │ └── index.js └── types.js ├── server.js ├── static ├── .gitkeep └── nextjs.jpg ├── utils ├── cookie.js └── initialize.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/README.md -------------------------------------------------------------------------------- /components/Layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/components/Layout.js -------------------------------------------------------------------------------- /config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | API: 'http://localhost:8000', 3 | }; 4 | -------------------------------------------------------------------------------- /demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/demo.gif -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/pages/_app.js -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/pages/index.js -------------------------------------------------------------------------------- /pages/signin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/pages/signin.js -------------------------------------------------------------------------------- /pages/signup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/pages/signup.js -------------------------------------------------------------------------------- /pages/whoami.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/pages/whoami.js -------------------------------------------------------------------------------- /redux/actions/authActions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/actions/authActions.js -------------------------------------------------------------------------------- /redux/actions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/actions/index.js -------------------------------------------------------------------------------- /redux/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/index.js -------------------------------------------------------------------------------- /redux/reducers/authReducer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/reducers/authReducer.js -------------------------------------------------------------------------------- /redux/reducers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/reducers/index.js -------------------------------------------------------------------------------- /redux/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/redux/types.js -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/server.js -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/nextjs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/static/nextjs.jpg -------------------------------------------------------------------------------- /utils/cookie.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/utils/cookie.js -------------------------------------------------------------------------------- /utils/initialize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/utils/initialize.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alan2207/nextjs-jwt-authentication/HEAD/yarn.lock --------------------------------------------------------------------------------