Giter Site home page Giter Site logo

Comments (5)

curran avatar curran commented on July 24, 2024

I wonder if this may have something to do with these recent changes by @nateps derbyjs/racer@726b29a

Specifically, the line of code that assigns backend was removed: derbyjs/racer@726b29a#diff-5044e0717ba5ab44fb1f60c0668e2d3dL14

It looks like this change breaks derby-login.

from generator-derby.

curran avatar curran commented on July 24, 2024

Possibly related to these recent commits in derby-login by @zag2art , which seem like they should fix the issue I'm encountering:

These assume a "store" object, but in the generator template, the "store" is actually the "backend":

  var store = derby.createBackend({
    db: db,
    pubsub: pubsub
  });

When I console.log(store), I can see it is an instance of Backend:

Backend {
  domain: null,
  _events: { bundle: [ [Function], [Function] ] },
  _eventsCount: 1,
  _maxListeners: undefined,
  db: 
   DB {
     pollDelay: 0,
     disableIndexCreation: false,
     opIndexes: {},
     allowJSQueries: false,
     allowAggregateQueries: false,
     closed: false,
     mongo: null,
     mongoPoll: null,
     pendingConnect: [] },
  pubsub: 
   PubSub {
     prefix: undefined,
     nextStreamId: 1,
     streamsCount: 0,
     streams: {},
     subscribed: {},
     client: 
      RedisClient { ... },
     observer: 
      RedisClient { ... },
  extraDbs: {},
  projections: {},
  suppressPublish: false,
  maxSubmitRetries: null,
  middleware: {},
  agentsCount: 0,
  remoteAgentsCount: 0,
  racer: Racer { _plugins: [ [Function] ] },
  modelOptions: undefined }

from generator-derby.

minicuper avatar minicuper commented on July 24, 2024

Yeah, @nateps changed api one more time. Thanks, @cjblomqvist here is PR for the changes. #derbyparty/derby-login#37

from generator-derby.

curran avatar curran commented on July 24, 2024

Ah I see. Thank you for looking into this so quickly.

from generator-derby.

curran avatar curran commented on July 24, 2024

Auth is working correctly now with a newly generated project.

from generator-derby.

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.