Building app with follwoing stack - Django + Okta + SPA

Hi i need help and guidance to set up authentication for django rest backend.
Cordova app built with plain html and js using okta.

I am planing to use existing django plugin to build oauth2.0 like python-social-auth or django-rest-framework-social-oauth2.

If i do can i integrate this with OKTA js sdk/widget

also i learnt that i need to use OAuth 2.0 Authorization Code with PKCE Flow for better security than implicit flow.

I need a guidance/pointers for the above to move forward

Thank you!