Hi Team,
I am getting below error
AuthSdkError: A clientId must be specified in the OktaAuth constructor to get a token
Can anyone please help here ?
Hi Team,
I am getting below error
AuthSdkError: A clientId must be specified in the OktaAuth constructor to get a token
Can anyone please help here ?
Hey @louie : I am using below npm packages
β@okta/okta-auth-jsβ: β^6.7.1β,
β@okta/okta-reactβ: β^6.5.0β,
Hi @er.gauravgoyal! Double checking, did you add a client id to your OktaAuth constructor per - GitHub - okta/okta-react: Okta OIDC SDK for React.
import { useHistory } from 'react-router-dom';
import { OktaAuth, toRelativeUrl } from '@okta/okta-auth-js';
const oktaAuth = new OktaAuth({
issuer: 'https://{yourOktaDomain}/oauth2/default',
clientId: '{clientId}',
redirectUri: window.location.origin + '/login/callback'
});