I want to use Stormpath, Express.js, and Node.js. Do I want stormpath-express or express-stormpath?

一世执手 提交于 2020-01-05 02:50:08

问题


I posted an earlier question ("What do I need to know to transfer a working Node project?") after I had a Node project working on a server, and couldn't get it to work at all on my laptop.

In the course of drafting another comment, I noticed something funny. The person who probably gave me the most help asked my version numbers for Node and Stormpath, and when I gave them, he said that my version number from my package.json didn't look like a stormpath-express version number.

What I found out in trying to reconcile is that there are both a stormpath-express package, and an express-stormpath package, and the "that's odd" remark I got was when I he asked me my version number with stormpath-express in mind, and I answered him with the express-stormpath from my packages.json.

I don't know how little or how much this had to do with my original troubles in What do I need to know to transfer a working Node project?, but what is the difference between stormpath-express and express-stormpath, and which package do I want to use for (for a Node.js + Express.js + Stormpath) application?


回答1:


Heyo -- I'm the author of these libraries, so let me help clarify things.

The library you want to use (without fail!) is this: express-stormpath: https://github.com/stormpath/express-stormpath

The github repo is named 'stormpath-express' (due to a company naming convention), but the library is called 'express-stormpath', and it is the one you want to use.

We just made a new release of this library which supports EVERYTHING -- angular included. So you'll want to use this library now, and for the future =)




回答2:


See the new configuration options here:

https://github.com/stormpath/express-stormpath/blob/master/lib/config.yml



来源:https://stackoverflow.com/questions/32359759/i-want-to-use-stormpath-express-js-and-node-js-do-i-want-stormpath-express-or

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!