Skip to content
This repository has been archived by the owner. It is now read-only.

fix(clients): retry with a fresh token on OAuth requests #4688

Merged
merged 1 commit into from Feb 3, 2017
Merged

Conversation

@vladikoff
Copy link
Contributor

@vladikoff vladikoff commented Jan 31, 2017

Fixes #4659

@vladikoff vladikoff added the WIP label Jan 31, 2017
@vladikoff vladikoff self-assigned this Jan 31, 2017
@@ -772,6 +772,15 @@ define(function (require, exports, module) {
*/
fetchOAuthApps () {
return this._oAuthClient.fetchOAuthApps(this.get('accessToken'))
.fail((err) => {
if (! AuthErrors.is(err, 'UNAUTHORIZED')) {
// the accessToken is very lived.

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 31, 2017
Member

very lived seems like it should have short or long in there.

This comment has been minimized.

@vladikoff

vladikoff Jan 31, 2017
Author Contributor

Hahahahah I meant to remove verybut instead the word short got removed.

@@ -809,6 +818,15 @@ define(function (require, exports, module) {
var accessToken = this.get('accessToken');

return this._oAuthClient.destroyOAuthApp(accessToken, oAuthAppId)
.fail((err) => {
if (! AuthErrors.is(err, 'UNAUTHORIZED')) {
// the accessToken is short lived.

This comment has been minimized.

@shane-tomlinson

shane-tomlinson Jan 31, 2017
Member

Same here too.

@vladikoff vladikoff force-pushed the i4659 branch from 36aa662 to 3b8037c Feb 3, 2017
@vladikoff vladikoff changed the title [wip] fix(clients): retry with a fresh token on OAuth requests fix(clients): retry with a fresh token on OAuth requests Feb 3, 2017
@vladikoff vladikoff merged commit 1cd050a into master Feb 3, 2017
4 checks passed
4 checks passed
ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage decreased (-0.03%) to 98.456%
Details
@vladikoff vladikoff deleted the i4659 branch Feb 3, 2017
@rfk rfk added this to the FxA-0: quality milestone Feb 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants