@okta/okta-auth-js version 5.0.2 reports unsupported auth SDK

When I created a react application for authentication with Okta, I encountered an error that the auth SDK of version 5.0.2 is not supported. The npm manifest declares this version as stable.

How would one go about using version 5.0.2 of @okta/okta-auth-js?

The npm page further states that version 4.x has a very short life (expiry on 2022-01-30).

I appreciate your kind help and guidance on being able to move forward.

Looks like you will need to upgrade to React SDK v6.0.0 to use Okta Auth JS v5.x.