
yyjmg (yyjmg) asked a question.
I'm looking for the solution to get just the auth code using OktaOidc SDK for iOS.
I've searched for the code in the pod and I did found some classes which are using the authCode but those are not public classes hence, the scope is not found in my app.
Can someone guide me on how to get the auth code?

Hi Shrey. Unfortunately this piece of the OIDC flow is abstracted away in our iOS SDK. To achieve what you are looking to do you would need to manually create an OIDC flow using our APIs:
https://developer.okta.com/docs/reference/api/oidc/#authorize
Can this be done without the browser? Like consuming it as a restful api and getting the authcode in JSON??