Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Commit

Permalink
Remove array check on scopes (#120)
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
jmelberg-okta committed Mar 6, 2018
1 parent f8e1100 commit eaf407b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/okta-angular/src/okta/okta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,11 @@ export class OktaAuthService {

/**
* Scrub scopes to ensure 'openid' is included
* @param scopes
*/
scrubScopes(scopes) {
scrubScopes(scopes: string) {
if (!scopes) {
return 'openid email';
} else {
// Make sure object is a string
scopes = Array.isArray(scopes) ? scopes.join(' ') : scopes
}
if (scopes.indexOf('openid') === -1) {
return scopes + ' openid';
Expand Down

0 comments on commit eaf407b

Please sign in to comment.