In OAuth and OpenID Connect (OIDC), many core features rely on a single authoritative domain.The most important of these is the issuer — a required field in Access and ID token JWTs that uniquely identifies your Stytch application as the entity that created the token. Consumers of these JWTs use the issuer during validation to ensure the token’s authenticity.Another key feature is the set of well-known metadata URLs, which OAuth clients use to automatically discover server configuration. These endpoints expose metadata about available capabilities and supported flows.
For OAuth: https://<domain>/.well-known/oauth-authorization-server
For OIDC: https://<domain>/.well-known/openid-configuration
Stytch will automatically provision a default domain for your project upon creation. Default domains are intended for convenient testing of an initial integration. However, this domain is frequently shared with external consumers of your application. We recommend setting up a Branded Custom Domain as a subdomain of your main website before going live with your integration.
All Stytch projects are provisioned a unique default domain upon creation.
In test environments, the domain will look like https://{noun}-{verb}-{number}.customers.stytch.dev.
In live environments, the domain will look like https://{noun}-{verb}-{number}.customers.stytch.dev.
API calls occurring over this domain will use the domain value while processing the request.For example, the Access token and ID token returned from this Exchange Authorization Code (for B2B, for Consumer) call will have an issuer of https://{noun}-{verb}-{number}.customers.stytch.dev.
Similarly, the metadata returned from this Get OpenID Configuration (for B2B, for Consumer) call will use the https://{noun}-{verb}-{number}.customers.stytch.dev:
curl --request GET \ --url https://{noun}-{verb}-{number}.customers.stytch.dev/.well-known/openid-configuration
When you configure a custom domain (e.g. https://login.yourcompany.com) and make API calls using that domain, Stytch will use that domain instead.The Access token and ID token returned from this call will have an issuer of https://login.yourcompany.com.
If you were an early customer of Connected Apps, you may be accessing the product over api.stytch.com - e.g. https://api.stytch.com/v1/public/${projectId}/oauth2/token. When accessed this way, Stytch will use the project ID (stytch.com/$projectId) as the issuer. These issuers are not OpenID Connect (OIDC) compliant, as they are not HTTPS URLs.