Wednesday, 15 March 2017

Running express-stormpath locally

I'm trying to run express-stormpath on my local NodeJS project, but I cannot do anything to sign up to get my API key. When I simply do:

var stormpath = require("express-stormpath");

app.use(stormpath.init(app, {
    web: {
        register: {
            enabled: false
        }
    }
}));

I was told by all the documentation, that I should be able to visit http://localhost:3000/login and http://localhost:3000/register to verify the "installation" works, but I'm just getting timed out. My console reads:

Error: API key ID and secret is required.

When I go to the website, I can ONLY log in and when I go to https://api.stormpath.com/register to register an account, it just redirects me to the login page (got the link from here).

What do I do to register an account? This is one of the most frustrating things I have ever dealt with.



via MortenMoulder

No comments:

Post a Comment