
GuyH.63811 (Customer) asked a question.
I have a server that validates Okta access tokens as a means for authentication. I want to write tests that test my endpoints, and thus need to provide an Okta access token through in order to reach the endpoint but I don't want to actually hit Okta for every endpoint test. Is there a way to generate a mock Okta access_token that would pass the oktaJwtVerifier's verifyAccessToken method?

Hi Guy, thanks for sharing your detailed question. No doubt other people would benefit from the solution as well.
Can anyone help with this?
Hi Guy,
Thank you for posting your question in our community forum. At present we do not have a way to create a mock access token. You could use our preview environments to test. Kindly check the below links to learn more about access tokens in Okta.
https://developer.okta.com/docs/api/resources/oidc/#access-token
https://developer.okta.com/authentication-guide/tokens/validating-access-tokens/#overview
If you have any additional questions kindly contact Okta support. Thank you.