Skip to content

Commit a0e3b3c

Browse files
authored
Update okta-authentication.md
Replace the incorrect `scope` to `scopes`. Otherwise, the default scopes of `['openid', 'email']` will be used without the given `profile` one.
1 parent a665789 commit a0e3b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/testing-strategies/okta-authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Cypress.Commands.add('loginByOktaApi', (username, password) => {
105105
issuer: `https://${Cypress.env('okta_domain')}/oauth2/default`,
106106
clientId: Cypress.env('okta_client_id'),
107107
redirectUri: 'http://localhost:3000/implicit/callback',
108-
scope: ['openid', 'email', 'profile'],
108+
scopes: ['openid', 'email', 'profile'],
109109
}
110110

111111
const authClient = new OktaAuth(config)

0 commit comments

Comments
 (0)