synapsestudios / synapse-common

DEPRECATED
MIT License
1 stars 2 forks source link

Tokens aren't refreshing correctly #59

Closed agerbens closed 8 years ago

agerbens commented 8 years ago

Lodash does chaining differently than underscore, so changing to lodash caused the auth-gateway to not be able to refresh tokens correctly.

handleSuccess = _(this.handleTokenExchangeSuccess.bind(this))
                .partial(token, method, path, data, headers, resolve, reject);

When using underscore, handleSuccess is a wrapper. When using lodash, handleSuccess is a LodashWrapper. (https://lodash.com/docs#_)

We're not using the chaining here anyway, so let's just use the normal notation.

agerbens commented 8 years ago

:m: :star:

baohx2000 commented 8 years ago

:+1: