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

Remove array check on scopes #120

Merged
merged 1 commit into from
Feb 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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