You can do PKCE flow which is suitable for "public clients" if you are looking for SSO with Okta only.
This tutorial should cover the basics though it's for Vue - https://developer.okta.com/blog/2019/08/22/okta-authjs-pkce