Skip to content

Conversation

joovel
Copy link
Contributor

@joovel joovel commented Sep 27, 2017

No description provided.

sign.js Outdated
@@ -31,7 +31,7 @@ var registered_claims_schema = {

function validate(schema, unknown, object) {
if (!isPlainObject(object)) {
throw new Error('Expected object');
throw new Error('Expected payload to be a plain object.');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be raised from payload or options validation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made some changes to distinguish these.

Copy link
Contributor

@ziluvatar ziluvatar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'll merge after checking if currently we have more fixes to generate a new patch version

@ziluvatar ziluvatar merged commit bb27eb3 into auth0:master Oct 9, 2017
@ziluvatar
Copy link
Contributor

Released on v8.1.0. 👏 Thanks again @joovel !!

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

Successfully merging this pull request may close these issues.

3 participants