In-page authentication over external provider

Hi -

i have my own authentication mechanism i use to sign users into OKTA -

currently i’ve implemented it as OIDC, so the flow does full page redirects into my OIDC endpoints and back to OKTA [that exchanges the resulting code with a token and establishes the logged in session].

is there a way to implement an external authentication that will result with a logged in OKTA session that will not redirect the browser but simply orchestrate it within the page?