Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Constructor options usage #1

Open
dmitrizagidulin opened this issue Nov 8, 2016 · 2 comments
Open

Constructor options usage #1

dmitrizagidulin opened this issue Nov 8, 2016 · 2 comments

Comments

@dmitrizagidulin
Copy link
Member

Currently, to disable error handling in the rs constructor, I have to:

let rs = new ResourceServer( { defaults: { handleErrors: false } })

Should the actual options (that get passed to authenticate()) be wrapped in defaults? Can't they be passed in wholesale?

@dmitrizagidulin
Copy link
Member Author

(This one's low priority)

@christiansmith
Copy link
Member

Good catch. Actually had planned on a defaults option for the constructor and just haven't got to it. Great minds think alike.

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

No branches or pull requests

2 participants