https://github.com/connor11528/vuejs-auth-frontend
🔒 Vue.js frontend app with JWT authentication
https://github.com/connor11528/vuejs-auth-frontend
authentication jwt vue vue-frontend
Last synced: about 1 year ago
JSON representation
🔒 Vue.js frontend app with JWT authentication
- Host: GitHub
- URL: https://github.com/connor11528/vuejs-auth-frontend
- Owner: connor11528
- Created: 2016-09-05T01:37:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T00:49:00.000Z (almost 10 years ago)
- Last Synced: 2025-04-01T16:08:56.803Z (about 1 year ago)
- Topics: authentication, jwt, vue, vue-frontend
- Language: Vue
- Homepage: https://employbl.com/
- Size: 7.81 KB
- Stars: 28
- Watchers: 6
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Vue.js Frontend Authentication
===

A frontend codebase for authentication with Vue.js and JWT. Code built from the Auth0 tutorial [Build an App with Vue.js: From Authentication to Calling an API](https://auth0.com/blog/build-an-app-with-vuejs/)
## About the app
To log users in, we'll make an HTTP request to our authentication endpoint and save the JWT that is returned in localStorage.
**Vue components** allow us to specify a template, a script, and style rules all in one file.
## Setup
Launch server:
```
$ webpack-dev-server --inline --hot
```
Sample backend: https://github.com/auth0-blog/nodejs-jwt-authentication-sample. Clone the repo, install dependencies and then we can use it as an api endpoint to hit up `http://localhost:3001/api/random-quote`