billions-minister-2901
04/18/2024, 2:48 PMchilly-king-10285
04/18/2024, 2:48 PMchilly-king-10285
04/18/2024, 2:48 PMhttps://{project.slug}.<http://projects.oryapis.com|projects.oryapis.com>
domain associated with your Ory Network project. If you want to use your custom domain as the audience instead, you need to update the OAuth2 Issuer URL of your project to match your custom domain. You can change the issuer URL using the Ory CLI with the following command: bash ory patch oauth2-config {project-id} \ --replace '/urls/self/issuer="<https://auth.myexample.org>"'
Replace <https://auth.myexample.org>
with your custom domain. For more detailed instructions on how to change the OAuth2 Issuer URL, refer to the [Ory documentation](https://www.ory.sh/docs/oauth2-oidc/issuer-url). If you have recently changed your custom domain and are still experiencing issues, it may be due to a misconfiguration in your OpenID Connect Client or an incorrect issuer URL. You can view the issuer URL of your Ory Network project using the Ory CLI with the following command: bash ory get oauth2-config {project-id} --format json | jq '.urls.self.issuer'
Use this value to understand if the server is incorrectly configured or if the client is using the wrong issuer URL. Sources: - [Troubleshooting OAuth2 JWT Profile](https://www.ory.sh/docs/troubleshooting/oauth2-trust-audience) - [Change the OAuth2 issuer URL](https://www.ory.sh/docs/oauth2-oidc/issuer-url)billions-minister-2901
04/18/2024, 2:53 PMchilly-king-10285
04/18/2024, 2:53 PMchilly-king-10285
04/18/2024, 2:53 PMjavascript import { Configuration, OAuth2Api } from "@ory/client" const ory = new OAuth2Api( new Configuration({ basePath: `https://${process.env.ORY_PROJECT_SLUG}.<http://projects.oryapis.com|projects.oryapis.com>`, accessToken: process.env.ORY_API_KEY, }), ) export async function introspectToken(accessToken: string) { const { data } = await ory.introspectOAuth2Token({ token: accessToken }) data.active // true or false }
If the token is still active, you might need to wait for it to expire or manually invalidate it. Sources: - [Revoking JSON Web Tokens](https://www.ory.sh/docs/oauth2-oidc/jwt-access-token#revoking-json-web-tokens)billions-minister-2901
04/18/2024, 2:57 PMchilly-king-10285
04/18/2024, 2:57 PMchilly-king-10285
04/18/2024, 2:57 PMhttps://<your-custom-domain>/ui/welcome
. If you have completed these steps and the issue persists, it might be a good idea to reach out to Ory support for further assistance. Sources: - [Waiting for propagation](https://www.ory.sh/docs/guides/custom-domains#waiting-for-propagation) - [Set up custom domains](https://www.ory.sh/docs/guides/custom-domains)