Skip to content

Commit

Permalink
fix(spark-core): fix excess logs caused by missing cache
Browse files Browse the repository at this point in the history
Also fix incorrect loadding of "@" data and prevent duplicate decoration
caused by browser/node split implementations

Fixes #119
  • Loading branch information
ianwremmel committed Sep 28, 2016
1 parent 82eb35b commit 1f505e5
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/spark-core/src/plugins/credentials/credentials/node.js
Expand Up @@ -4,27 +4,13 @@
* @private
*/

import {oneFlight} from '@ciscospark/common';
import SparkPlugin from '../../../lib/spark-plugin';
import common from './common';
import {persist, waitForValue} from '../../../lib/storage';

/**
* @class
* @extends CredentialsBase
*/
const Credentials = SparkPlugin.extend(Object.assign({}, common, {
@oneFlight
@waitForValue(`authorization`)
authorize(...args) {
return Reflect.apply(common.authorize, this, args);
},

@persist(`authorization`)
@persist(`clientAuthorization`)
initialize(...args) {
return Reflect.apply(SparkPlugin.prototype.initialize, this, args);
}
}));
const Credentials = SparkPlugin.extend(common);

export default Credentials;

0 comments on commit 1f505e5

Please sign in to comment.