npm install
npm run serve
npm run start
npm run build
npm run test
npm run lint
Repo for Vue Mastery's Token-Based Authentication course
Home Page: https://www.vuemastery.com/courses/token-based-authentication/intro-to-authentication
npm install
npm run serve
npm run start
npm run build
npm run test
npm run lint
using node -v v16.6.0
npm install fails many of the packages are deprecated
npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see axios/axios#3410
npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
In ./src/router.js
on the branch "lesson5_FINISH"
authentication_course/src/router.js
Lines 38 to 45 in c7337e1
After next('/')
on line 42, there shoud be a return
statement.
If not, the script goes on and hits the next()
statement.
I am following along with Lesson 6: Handling Errors.
Since it took a while for this lesson to come up, I decided to get a snapshot of the code form the end of lesson 5 to follow along.
When looking at the code for server.js
it does not match with what is shown in the video. Server errors are incorrect, and I am not getting the same console messages you guys are talking about in the video. My next step is to try the completed lesson 6 code and see if it is up to date.
It gets out of date too quickly and presents a huge bunch of warnings.
Way distracts from and obfuscates the learning experience.
There is one example code in third video lesson:
import axios from 'axios' ... actions: { register ({ commit }, credentials) { return axios .post('//localhost:3000/register', credentials) .then(({ data }) => { console.log('user data is', **userData**) commit('SET_USER_DATA', data) }) } }
but userData is not correct variable name. It is not used anywhere else and is not defined. Trying copy this and run this code generate an error. It's not important, but yet.
Not a problem but a question -- I was wondering what the reasoning is for having the intermediary helpers.js file in the store. You are importing mapGetters
there and then importing specific items from helpers.js
into components.
Thanks for all the work you do on these courses -- they are really helpful.
In code we have a const publicPages = ['/authenticate', '/']
I'm gonna add to this variable a dynamic route such as a '/email-confirm/:uid/:token'
Question: how I can implement this? I'm tried like this:
const publicPages = ['/authenticate', '/', '/email-confirm/:uid/:token'], it is not working
and like this: const publicPages = ['/authenticate', '/', {name: 'email-confirm'}], this also not working
P.S here my route:
{
path: '/email-confirm/:uid/:token',
name: 'email-confirm',
component: () => import('../views/Auth/EmailConfirm')
},
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.