It’s there in the title… Currently, I am unable to get a JWT from the Okta widget if I am not redirecting. We get a session token, but need a JWT. Is this possible? The examples online all use a redirect flow.
No it is not possible at least if you redirect from the widgit. There are rest authorisation flows you can use that don’t require redirection such as the client method: https://developer.okta.com/docs/reference/api/oidc/#client-authentication-methods