I am trying to get my authorize URL looking like https://${yourOktaDomain}/oauth2/${authorizationServerId}/v1/authorize like mentionned in the document, because I am using a custom authorization server and I need to get custom scopes.
However, after trying different combinations between the issuer and the discoverUri parameters in the createConfig method, my authorize URL keeps looking like /oauth2/v1/authorize?scope=custom_scope&response_type=... (without the auth server ID that I am trying to add), according to the admin console
I omitted to specify that I am indeed on react-native (0.67.5) and I am using the latest version of the okta lib (@okta/okta-react-native 2.7.0).
@erik These URLs works well if I try them manually with Postman, but the problem is that I can not add my auth server id in the authorize URL via the library, and so I am having authorization error when I try to get a custom scope.
so maybe that’s why whatever I put in the discoveryUri, it will be overwritten by the “origin” of the URL.
I also tried the value you suggested for the issuer, but I am getting the same result again.