stytchProvider wires authentication through Stytch Connected Apps, so your tools receive a signed-in Stytch user.
Example
server.ts
Signature
Parameters
opts
-
domainis the project domain, for exampleacme.customers.stytch.dev, or a configured custom domain. -
audienceis the Stytch Project ID, the audience Stytch binds into the token’saudclaim.
CustomProviderOptions options: baseUrl, serverUrl, scopes, requiredScopes, and metadataOverrides.
Requires Dynamic Client Registration enabled in the Stytch dashboard.
Returns
APromise for the OAuthConfig you pass to the oauth constructor option.
Connect an Identity Provider
Set up sign-in with a hosted provider
Authenticate Users
Add sign-in to your app end to end
customProvider
Wire OAuth from any IdP’s discovery document