
ts9sd (ts9sd) asked a question.
I have modeled my OKTA authentication after this example shown here:
https://github.com/okta/samples-js-react/tree/master/okta-hosted-login/src
When I try to get the access token using "oktaAuth.getAccessToken()" I get the error message listed in the title.
I have confirmed my credentials via Postman so I know that is not an issue.

Hi @ts9sd (ts9sd) , Thank you for reaching out to the Okta Community!
This question is more appropriate for our dedicated Okta Developer Forum.
My advice would be to reach out devforum.okta.com to take advantage of their expertise.
While we'll do our best to answer all of your questions here, this medium is more inclined towards Okta core products and features (non-developer work).
In the meantime, I’ve not been able to locate any similar reports. However I’ve located a couple of tangential posts that may or may not provide some insight.
https://devforum.okta.com/t/okta-auth-js-get-accesstoken-after-getting-sessiontoken-via-mfa/25256
https://devforum.okta.com/t/is-there-any-way-to-verify-access-token-in-react-spa-via-okta-react-or-okta-auth-js-from-frontend-only/23150
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Ask Away: OIG Product Experts Answer Your Questions Thru Thur., Dec 14