mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
- Cleans up logging. Logs are now color-coded, added more debug logs, and errors can include some simple metadata (like provider id) to know which provider caused an issue. - All errors are exposed via `@auth/core/errors`. Each error has a URL like: https://errors.authjs.dev#errorcode in the terminal, which points to the documentation explaining the problem in detail, suggesting a fix. - Added a bunch of documentation that autogenerates the pages under https://authjs.dev/reference/core/modules/main - Renames `AuthHandler` to `Auth` and `AuthOptions` to `AuthConfig` - Throwing an error in `signIn` callback will now be caught as a general error and will redirect to `/error?error=Configuration`. If the callback returns `false`, it will redirect to `/error?error=AccessDenied`.
95 lines
2.1 KiB
JSON
95 lines
2.1 KiB
JSON
{
|
|
"cleanUrls": true,
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "DENY"
|
|
},
|
|
{
|
|
"key": "X-XSS-Protection",
|
|
"value": "1; mode=block"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"redirects": [
|
|
{
|
|
"source": "/schemas/models",
|
|
"destination": "/adapters/models",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/schemas/mysql",
|
|
"destination": "/adapters/typeorm/mysql",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/schemas/postgres",
|
|
"destination": "/adapters/typeorm/postgres",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/schemas/mssql",
|
|
"destination": "/adapters/typeorm/mssql",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/schemas/mongodb",
|
|
"destination": "/adapters/typeorm/mongodb",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/schemas/adapters",
|
|
"destination": "/adapters/overview",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/new/provider-issue",
|
|
"destination": "https://github.com/nextauthjs/next-auth/issues/new?assignees=&labels=triage%2Cproviders&template=2_bug_provider.yml",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/new/github-discussions",
|
|
"destination": "https://github.com/nextauthjs/next-auth/discussions/categories/questions",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/",
|
|
"has": [
|
|
{
|
|
"type": "host",
|
|
"value": "sveltekit.authjs.dev"
|
|
}
|
|
],
|
|
"destination": "https://authjs.dev/reference/sveltekit/"
|
|
},
|
|
{
|
|
"source": "/:path(.*)",
|
|
"has": [
|
|
{
|
|
"type": "host",
|
|
"value": "errors.authjs.dev"
|
|
}
|
|
],
|
|
"destination": "https://authjs.dev/reference/core/modules/errors/:path*"
|
|
},
|
|
{
|
|
"source": "/:path(.*)",
|
|
"has": [
|
|
{
|
|
"type": "host",
|
|
"value": "warnings.authjs.dev"
|
|
}
|
|
],
|
|
"destination": "https://authjs.dev/reference/warnings/:path*"
|
|
}
|
|
]
|
|
}
|