Giter VIP home page Giter VIP logo

auth0-vue's People

Contributors

dominikangerer avatar nicholasshirley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

auth0-vue's Issues

Logout loop

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:

  1. Add a logout route in the Auth0 dashboard
  2. Change the logout function to be:
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.

script doesn't work when build'ed

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.