Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Document newer config loading in SDK #530

Open
edjiang opened this issue Aug 18, 2016 · 0 comments
Open

Document newer config loading in SDK #530

edjiang opened this issue Aug 18, 2016 · 0 comments

Comments

@edjiang
Copy link

edjiang commented Aug 18, 2016

var client = new stormpath.Client({
  apiKey: {
    id: process.env['STORMPATH_CLIENT_APIKEY_ID'],
    secret: process.env['STORMPATH_CLIENT_APIKEY_SECRET']
  }
});

Quickstart says to:

var apiKey = new stormpath.ApiKey(
  process.env['STORMPATH_CLIENT_APIKEY_ID'],
  process.env['STORMPATH_CLIENT_APIKEY_SECRET']
);

var client = new stormpath.Client({ apiKey: apiKey });

Which is way less convenient.

(Alternatively, shouldn't they be loaded from environment variables by default, anyways? So no need to even specify this)

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant