Skip to content

un-else this response #161

@cubap

Description

@cubap

// Here we need to check if this is an Auth0 success object or an Auth0 error object
if(tokenObj.error){
console.error(tokenObj.error_description)
res.status(500).send(tokenObj.error_description)
}
else{
res.status(200).send(tokenObj)
}

This conditional is overbuilt

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions