dominikangerer / auth0-vue Goto Github PK
View Code? Open in Web Editor NEWA simple Vue.js Demo Application that uses Auth0 for Authentication
Home Page: https://www.storyblok.com/tp/how-to-auth0-vuejs-authentication
A simple Vue.js Demo Application that uses Auth0 for Authentication
Home Page: https://www.storyblok.com/tp/how-to-auth0-vuejs-authentication
Thanks so much for putting this together! It's frustrating that all of the official docs I've tried to follow so far haven't worked.
One issue, I can't actually log out with the tutorial. It does delete from local storage, but then webAuth.authorize()
fires and the user is logged in again.
To fix I needed to:
logout() {
return new Promise((resolve, reject) => {
localStorage.removeItem('access_token')
localStorage.removeItem('id_token')
localStorage.removeItem('expires_at')
localStorage.removeItem('user')
webAuth.logout({
returnTo: 'http://localhost:8080/', // the logout route added to dashboard goes here
clientID: '...', // same clientID in the constructor
})
})
I don't know if you're still updating this, but I'd be happy to make a PR with those changes.
Known vulnerability -> update in package.json and package-lock
Hey Dominik,
Im having problems, when i build this repo, and try to use it.
When i enter the url for the site http://test.rasmusp.com i get an error "Not Found - the requested URL /callback was not found on this server." and doesn't redirect to the login screen
I have changed the redirectUri in the script and the allow urls on auth0. I works fine, when i run "npm run serve" - can you help me to why it doesn't work ?
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.