Skip to content

Commit 75891f1

Browse files
authored
Fix typo in ember-oauth2.js
If a "scope" is defined, Ember would fail with `Assertion Failed: Cannot call `Ember.get` with an empty string`, due to the `get('.scope')` call.
1 parent 6763483 commit 75891f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/services/ember-oauth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default Ember.Service.extend(Ember.Evented, {
237237
'&client_id=' + encodeURIComponent(this.get('clientId')) +
238238
'&state=' + encodeURIComponent(this.get('state'));
239239
if (this.get('scope')) {
240-
uri += '&scope=' + encodeURIComponent(this.get('.scope')).replace('%20', '+');
240+
uri += '&scope=' + encodeURIComponent(this.get('scope')).replace('%20', '+');
241241
}
242242
return uri;
243243
},

0 commit comments

Comments
 (0)