Giter Site home page Giter Site logo

johnlim / auth0-element Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 11.27 MB

An element that makes it easy to declaratively use auth0

Home Page: https://johnlim.github.io/auth0-element/components/auth0-element/demo/

License: MIT License

HTML 100.00%

auth0-element's People

Contributors

johnlim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

auth0-element's Issues

`idToken` from localstorage being `"undefined"`

In auth0-auth:

        // Get the user token if we've saved it in localStorage before
        var idToken = localStorage.getItem(this.localStorageKey); // <- HERE
        if (idToken) {
          // If there's a token, just redirect to "targetUrl" if any
          //window.location.href = '#/leave-types';
          this._getProfile(idToken);
          return;
        }

In the snippet above, the value of var idToken taken out from localStorage is "undefined", instead of undefined, thus cause some critical error in _getProfile.

Tried more in console about localstorage:

> localStorage
> Storage {auth0:authUser: "undefined", length: 1}
> localStorage.foo
> null

I've not dig more, though glad to help if you need more info.

Thx for the component!

Polymer or lit-element

Hi. How stable/complete is the version for Polymer 3? You also mention a lit version but I cannot see a related branch. Is it usable?

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.