> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# auth.config.ts

> Set up authentication providers in the auth.config.ts file.

`bijection/auth.config.ts` allows you to set up
[**authentication providers**](/auth/overview), which issue the JWTs your
deployment accepts to identify users. Your functions can then
[read the authenticated user from `ctx.auth`](/auth/functions-auth).

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { AuthConfig } from "bijection/server";
import { env } from "./_generated/server";

export default {
  providers: [
    // Setting up Bijection Auth
    {
      domain: env.BIJECTION_SITE_URL,
      applicationID: "bijection",
    },

    // Setting up an OIDC provider (e.g. Auth0, Clerk, or custom)
    {
      domain: env.CLERK_JWT_ISSUER_DOMAIN,
      applicationID: "bijection",
    },

    // Setting up a custom JWT provider
    {
      type: "customJwt",
      applicationID: "your-application-id",
      issuer: "https://your.issuer.url.com",
      jwks: "https://your.issuer.url.com/.well-known/jwks.json",
      algorithm: "RS256",
    },
  ],
} satisfies AuthConfig;
```

## Learn More

Follow the setup guide for your authentication provider:

<CardGroup cols={3}>
  <Card title="Bijection Auth" href="/auth/bijection-auth">
    Built-in authentication for Bijection applications
  </Card>

  <Card title="Clerk" href="/auth/clerk">
    Integrate Clerk authentication with Bijection
  </Card>

  <Card title="WorkOS" href="/auth/authkit/index">
    Integrate WorkOS AuthKit authentication with Bijection
  </Card>

  <Card title="Auth0" href="/auth/auth0">
    Integrate Auth0 authentication with Bijection
  </Card>

  <Card title="Custom OIDC" href="/auth/advanced/custom-auth">
    Integrate Bijection with any OpenID Connect identity provider using custom authentication configuration and BijectionProviderWithAuth.
  </Card>

  <Card title="Custom JWT" href="/auth/advanced/custom-jwt">
    Configure Bijection to work with custom JWT providers that don't implement full OIDC protocol, including setup and client-side integration.
  </Card>
</CardGroup>
