almatrass / passport-opskins

A simple passport strategy for authenticating users through the OPSkins platform
MIT License
4 stars 1 forks source link

secret has null #9

Closed gustavochavarria closed 5 years ago

gustavochavarria commented 5 years ago

Prevent Crash when use CreateClient because body.response.secret has null.

Force set: can_keep_secret to 1.

By default, can_keep_secret must setted to 1, but in wear, occasions are set to 0 and secret has null

ERROR:

if (!body.response || !body.response.client || !body.response.client.client_id || !body.response.secret) throw new Error(body.message); Line 145

almatrass commented 5 years ago

Thanks