We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffe5d01 + 5da1249 commit dac3703Copy full SHA for dac3703
app/torii-adapters/application.js
@@ -2,11 +2,16 @@ import config from '../config/environment';
2
import Ember from 'ember';
3
import ajax from 'ember-ajax';
4
5
+const { inject } = Ember;
6
+
7
export default Ember.Object.extend({ /**
8
* Resolve the user over the Github API using the token
9
* @param token API token (either from Cookie or Oauth)
10
* @return Promise
11
*/
12
13
+ store: inject.service(),
14
15
resolveUser (token) {
16
config.TMP_TORII_TOKEN = token;
17
return this.get('store').find('user', 'current').then((user) => {
0 commit comments