Giter VIP home page Giter VIP logo

Comments (2)

hoIIer avatar hoIIer commented on May 25, 2024 2

Hey @BobrImperator ok great I will try out removing the file and updating the modal code, thank you!

from ember-simple-auth.

BobrImperator avatar BobrImperator commented on May 25, 2024

Hi, thanks for reaching out :)

The login-modal.js example should work but you need to change it to:

        this.session.store.set('cookieExpirationTime', 24 * 60 * 60);

        yield this
          .session
          .authenticate('authenticator:jwt', {
            username: changeset.get('username'),
            password: changeset.get('password'),
          });

ESA is not using @tracked properties yet, so you need to use set in order to change values.

Also ESA removde the _initialize method in 4.2.2 so please upgrade it. You should be able to safely remove the custom store file once you do it.
Lastly, the 2 cookies are expected, one holds data and the other is for keeping the expiration time.

from ember-simple-auth.

Related Issues (20)

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.