mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
chore: update known errors to correct URL (#356)
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
parent
0413706c39
commit
ee48d2b7c0
@ -13,7 +13,7 @@ Stack Auth is a managed user authentication solution. It is developer-friendly a
|
||||
|
||||
Stack gets you started in just five minutes, after which you'll be ready to use all of its features as you grow your project. Our managed service is completely optional and you can export your user data and self-host, for free, at any time.
|
||||
|
||||
We support Next.js frontends, along with any backend that can use our [REST API](https://docs.stack-auth.com/rest-api/auth). Check out our [setup guide](https://docs.stack-auth.com/getting-started/setup) to get started.
|
||||
We support Next.js frontends, along with any backend that can use our [REST API](https://docs.stack-auth.com/rest-api/overview). Check out our [setup guide](https://docs.stack-auth.com/getting-started/setup) to get started.
|
||||
|
||||
<div align="center">
|
||||
<img alt="Stack Setup" src=".github/assets/create-project.gif" width="400" />
|
||||
|
||||
@ -47,7 +47,7 @@ describe("without project ID", () => {
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
"details": { "request_type": "client" },
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
|
||||
@ -16,7 +16,7 @@ describe("without project access", () => {
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
"details": { "request_type": "client" },
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
|
||||
@ -16,7 +16,7 @@ describe("without project access", () => {
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
"details": { "request_type": "client" },
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
|
||||
@ -11,7 +11,7 @@ it("should not have have access to the project", async ({ expect }) => {
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
"details": { "request_type": "client" },
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
|
||||
@ -14,7 +14,7 @@ it("should not have have access to the project without project keys", async ({ e
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
"details": { "request_type": "client" },
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "The x-stack-access-type header was 'client', but the x-stack-project-id header was not provided.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_WITHOUT_PROJECT_ID",
|
||||
|
||||
@ -20,7 +20,7 @@ describe("without project access", () => {
|
||||
"status": 400,
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_REQUIRED",
|
||||
"error": "You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_REQUIRED",
|
||||
@ -37,7 +37,7 @@ describe("without project access", () => {
|
||||
"status": 400,
|
||||
"body": {
|
||||
"code": "ACCESS_TYPE_REQUIRED",
|
||||
"error": "You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication",
|
||||
"error": "You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.\\n\\nFor more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication",
|
||||
},
|
||||
"headers": Headers {
|
||||
"x-stack-known-error": "ACCESS_TYPE_REQUIRED",
|
||||
|
||||
@ -288,7 +288,7 @@ const AccessTypeWithoutProjectId = createKnownErrorConstructor(
|
||||
deindent`
|
||||
The x-stack-access-type header was '${accessType}', but the x-stack-project-id header was not provided.
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication
|
||||
`,
|
||||
{
|
||||
request_type: accessType,
|
||||
@ -305,7 +305,7 @@ const AccessTypeRequired = createKnownErrorConstructor(
|
||||
deindent`
|
||||
You must specify an access level for this Stack project. Make sure project API keys are provided (eg. x-stack-publishable-client-key) and you set the x-stack-access-type header to 'client', 'server', or 'admin'.
|
||||
|
||||
For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/auth#authentication
|
||||
For more information, see the docs on REST API authentication: https://docs.stack-auth.com/rest-api/overview#authentication
|
||||
`,
|
||||
] as const,
|
||||
() => [] as const,
|
||||
|
||||
@ -6,7 +6,7 @@ Stack Auth is a managed user authentication solution. It is developer-friendly a
|
||||
|
||||
Stack gets you started in just five minutes, after which you'll be ready to use all of its features as you grow your project. Our managed service is completely optional and you can export your user data and self-host, for free, at any time.
|
||||
|
||||
We support Next.js frontends, along with any backend that can use our [REST API](https://docs.stack-auth.com/rest-api/auth). Check out our [setup guide](https://docs.stack-auth.com/getting-started/setup) to get started.
|
||||
We support Next.js frontends, along with any backend that can use our [REST API](https://docs.stack-auth.com/rest-api/overview). Check out our [setup guide](https://docs.stack-auth.com/getting-started/setup) to get started.
|
||||
|
||||
## 📦 Installation & Setup
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user