Repository: kinde-oss/documentation
Pull request #407: Adding a new page with common error codes
Author: login: alex72508
Created: 2025-05-01T02:00:16Z | Merged: 2025-05-07T05:10:14Z

#### Description

We're adding a new page with common error codes, a short description, and some troubleshooting steps. This should help customer self-service some common errors as well as bette train the AI support chat.

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Documentation**
  - Added a comprehensive guide listing common authentication error codes, including descriptions and troubleshooting steps for OAuth 2.0 and SAML integrations.
  - Updated the setup tasks guide with a minor textual correction and added a new related article for easier navigation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/src/content/docs/get-started/guides/error-codes.mdx b/src/content/docs/get-started/guides/error-codes.mdx
new file mode 100644
index 000000000..4733afcbf
--- /dev/null
+++ b/src/content/docs/get-started/guides/error-codes.mdx
@@ -0,0 +1,163 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
+
+Description
+- SAML callback tokenInfo returned invalid data
+
+## Error code 8030
+
+Description
+- Error configuring SAML provider on redirect
+
+Troubleshooting
+- Check the enterprise connection metadata URL
+- Check that the IDP has the correct ACS URL
+
+## Error code 8809
+
+Description:
+- Received browser trust token is different from the one stored in the login session
+
+Troubleshooting
+- Start the auth flow again from the sign in or log in button
+- The user is trying to start a session in a new tab, browser, or device when there's already a partially completed session in progress
+- The user may have bookmarked the auth page when it's partially completed, instead of bookmarking the initial sign in or log in page
+
+## Error code 9055
+
+Description
+- Error getting custom SAML provider configuration
+- RelayState is invalid or doesn't exist
+
+Troubleshooting
+- Check the SAML callback URL
+- Check the entity ID
+- Check that the SAML IDP is returning a valid RelayState
+
+## Error code 9364
+
+Description
+- Error getting authentication request while initializing SAML redirect
+
+Troubleshooting
+- Check the enterprise connection private key, certificate, and signature method
+
+## Error code 9697
+
+Description
+- Disposable email detected while authenticating a user on sign up in a workflow
+
+## Error code 9881
+
+Description
+- Error storing tokens with connected app
+
+Troubleshooting
+- Check the refresh token is valid
diff --git a/src/content/docs/get-started/guides/set-up-tasks.mdx b/src/content/docs/get-started/guides/set-up-tasks.mdx
index b48643132..f91bee8f8 100644
--- a/src/content/docs/get-started/guides/set-up-tasks.mdx
+++ b/src/content/docs/get-started/guides/set-up-tasks.mdx
@@ -6,11 +6,12 @@ sidebar:
 relatedArticles:
   - 720fcdda-daa6-4dff-ad2d-177af555e6bb
   - 2e4e5fca-9e1d-4c7d-b1bf-6a7e35d51847
+  - 46149cb3-fa96-46a2-bd94-0ba4aacae527
 ---
 
 The whole idea of Kinde is you can set it up the way you want, without too much fuss.
 
-Here are common some set up tasks. Depending on your business structure and how you want to do things, you may do some or all.
+Here are some common set up tasks. Depending on your business structure and how you want to do things, you may do some or all.
 
 ## Business settings
 


Reviews:
user: login: clairekinde11
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:40:04Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>♻️ Duplicate comments (1)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (1)</summary><blockquote>

`116-118`: _🛠️ Refactor suggestion_

**Standardize `tokenInfo` capitalization and consolidate descriptions**  
Should the field be `TokenInfo` instead of `tokenInfo`? Also merge the stray line into the Description section and format as a bullet:  
```diff
- Description
- - SAML callback tokenInfo returned invalid data
-
- Handle SAML callback - could not marshal tokenInfo
+ Description
+ - SAML callback `tokenInfo` returned invalid data or could not be marshaled
```

</blockquote></details>

</blockquote></details>

<details>
<summary>🧹 Nitpick comments (4)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (4)</summary><blockquote>

`46-47`: **Correct HTTP/HTTPS terminology and article usage**  
- Replace "an https" (incorrect article) and capitalize protocols for clarity.  
- For example:  
```diff
- - Redirect URI might not be with an https
+ - Redirect URI might not use HTTPS
- - Only a localhost suffix can be used with http
+ - Only a localhost suffix can be used with HTTP
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

</details>

</details>

---

`62-63`: **Remove duplicated word in description**  
The phrase repeats "response." Consider tightening to:  
```diff
- - Response contains invalid characters for Base64 response
+ - Contains invalid characters in the Base64 response
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

</details>

</details>

---

`74-74`: **Add missing definite articles for clarity**  
Grammar cleanup:  
```diff
- - OAuth 2.0 response failed because token is invalid and redirect ID is null
+ - OAuth 2.0 response failed because the token is invalid and the redirect ID is null
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

---

`131-131`: **Remove colon from heading for consistency**  
Headers across this file use `Description` without a colon. Update to match the style guide:  
```diff
- Description:
+ Description
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 9d920230b26f1f0c63a5bbc2eed613726e4b1eb8 and 0cd2054175364734cd2927e01a25b022ba69b18b.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `src/content/docs/get-started/guides/error-codes.mdx` (1 hunks)
* `src/content/docs/get-started/guides/set-up-tasks.mdx` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

---

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

---

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

---

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

</details>

<details>
<summary>🔇 Additional comments (4)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/set-up-tasks.mdx (2)</summary>

`9-9`: **Confirm related article linkage**  
Please verify that the referenced page ID `46149cb3-fa96-46a2-bd94-0ba4aacae527` matches the newly added "Common error codes" guide and appears in the correct order within `relatedArticles`.

---

`14-14`: **Grammar correction approved**  
The updated sentence reads more naturally. Great catch updating the intro to "Here are some common set up tasks."

</details>
<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (2)</summary>

`1-8`: **Frontmatter metadata looks correct**  
The `page_id`, `title`, `sidebar.order`, and `relatedArticles` configuration align with project conventions and correctly reference the "Common set up tasks" guide.

---

`10-13`: **Introduction section is clear**  
The opening paragraphs succinctly describe the purpose of the guide and set expectations for readers.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:50:21Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 1**

<details>
<summary>🧹 Nitpick comments (4)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (4)</summary><blockquote>

`22-31`: **Consider adding troubleshooting guidance for codes with only descriptions.**

Error codes 780 and 928 currently have only `Description` sections. If you have actionable steps (e.g., checking redirect URIs, inspecting app configuration), consider adding a `Troubleshooting` header with bullet points to help users diagnose these failures.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

</details>

</details>

---

`45-48`: **Improve bullet clarity and grammar.**

A couple of bullets under Error code 1656 can be refined:
```diff
-Troubleshooting
- - Redirect URI might not be with an https
- - Only a localhost suffix can be used with http
+Troubleshooting
+ - Redirect URI may not be using HTTPS
+ - Only a localhost suffix can be used with HTTP
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

</details>

</details>

---

`127-129`: **Remove colon for consistency in section heading.**

Other entries use `Description` (no colon). Change:
```diff
-Description:
+Description
```
under Error code 8809 to maintain uniformity.

---

`155-158`: **Add a `Troubleshooting` section for Error code 9697.**

This entry currently has only a description. If possible, provide steps such as verifying email validation rules or checking workflow triggers:
```md
## Error code 9697

Description
- Disposable email detected while authenticating a user on sign up in a workflow

Troubleshooting
- Verify allowed email domains in workflow configuration
- Ensure disposable email filters are up to date
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 0cd2054175364734cd2927e01a25b022ba69b18b and 14ef4861e7c17b555866305013364ced5a334e45.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `src/content/docs/get-started/guides/error-codes.mdx` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

---

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

---

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

---

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

</details>

<details>
<summary>🔇 Additional comments (3)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (3)</summary>

`1-8`: **Verify frontmatter links to the correct guide.**

Please double-check that the `relatedArticles` entry (`9b9ce8a8-dffb-47e5-82a9-e612b1947963`) matches the target page ID in `set-up-tasks.mdx` so that navigation works as intended.

---

`10-13`: **Intro is clear and concise.**

The opening paragraph and lead-in to the error codes list are well-written and set proper context.

---

`1-166`: **Overall, this page is well-structured and informative.**

Great addition—the format aligns with existing guides, and the troubleshooting tips will empower users to self-serve common auth errors.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

---

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

---

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

---

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:58:03Z
user: login: alex72508
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:58:55Z
user: login: alex72508
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:59:02Z
user: login: coderabbitai[bot]
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:59:16Z
user: login: alex72508
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:59:16Z
user: login: coderabbitai[bot]
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T02:59:59Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (6)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (6)</summary><blockquote>

`22-27`: **Add troubleshooting guidance for error code 780**  
There’s currently no `Troubleshooting` section for error code 780. Consider adding steps to help users resolve the “redirect is null” scenario (e.g., verifying the configured redirect URI in the OAuth client).

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

</details>

</details>

---

`28-37`: **Consider adding troubleshooting steps for codes without guidance**  
Error codes 928 and 1004 only include descriptions. For consistency and better user support, consider adding a `Troubleshooting` section (even a brief note) to guide resolution for these errors.

---

`44-47`: **Improve grammar and clarity in troubleshooting**  
The bullet “Redirect URI might not be with an https” is unclear.  
  
Apply this diff:
```diff
- - Redirect URI might not be with an https
+ - Redirect URI might not be using HTTPS
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

</details>

</details>

---

`62-63`: **Remove redundant word in description**  
The phrase “Base64 response” repeats “response.”  
  
Apply this diff:
```diff
- - Response contains invalid characters for Base64 response
+ - Response contains invalid characters for Base64
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

</details>

</details>

---

`73-74`: **Add missing article “the”**  
Include “the” before “token” to improve readability.  
  
Apply this diff:
```diff
- - OAuth 2.0 response failed because token is invalid and redirect ID is null
+ - OAuth 2.0 response failed because the token is invalid and redirect ID is null
```

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary>

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

---

`124-126`: **Unify `Description` header style**  
Most entries use “Description” (no colon). Remove the colon here for consistency.  
  
Apply this diff:
```diff
- Description:
+ Description
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 14ef4861e7c17b555866305013364ced5a334e45 and 268deb7196062ab0ea3289c1d9bad10949a52a98.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `src/content/docs/get-started/guides/error-codes.mdx` (1 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>🪛 LanguageTool</summary>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx</summary>

[uncategorized] ~25-~25: Possible missing preposition found.
Context: ...vider  ## Error code 780  Description - The OAuth 2.0 response failed - The token i...

(AI_HYDRA_LEO_MISSING_OF)

---

[misspelling] ~46-~46: Use “a” instead of ‘an’ if the following word doesn’t start with a vowel sound, e.g. ‘a sentence’, ‘a university’.
Context: ...t flow - Redirect URI might not be with an https - Only a localhost suffix can be ...

(EN_A_VS_AN)

---

[duplication] ~62-~62: Possible typo: you repeated a word.
Context: ...1959  Description - Error decoding SAML response - Response contains invalid characters for Base64 ...

(ENGLISH_WORD_REPEAT_RULE)

---

[uncategorized] ~74-~74: You might be missing the article “the” here.
Context: ...ion - OAuth 2.0 response failed because token is invalid and redirect ID is null  ## ...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</details>

</details>

</details>

<details>
<summary>🔇 Additional comments (3)</summary><blockquote>

<details>
<summary>src/content/docs/get-started/guides/error-codes.mdx (3)</summary>

`1-8`: **Frontmatter structure is correct**  
The page metadata (`page_id`, `title`, `sidebar`, `relatedArticles`) is properly defined and follows the project conventions.

---

`10-13`: **Introduction section is clear and concise**  
The opening lines effectively describe the purpose of the document and set user expectations.

---

`14-21`: **Error code 578 entry formatting**  
The `Description` and `Troubleshooting` sections are correctly structured with proper headings and bullet points.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T03:00:31Z
user: login: clairekinde11
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-05-07T05:10:02Z

Review comments:
diff_hunk: @@ -0,0 +1,169 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6134
+
+Handle Connected App callback - Error getting session data / connected app tokens
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: clairekinde11
body: Which TokenInfo or tokenInfo is the right format?
Should the second point be a bullet?
created_at: 2025-05-07T02:40:03Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,169 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6134
+
+Handle Connected App callback - Error getting session data / connected app tokens
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: coderabbitai[bot]
body: _🛠️ Refactor suggestion_

**Add missing "Description" heading for consistency**  
The entry for error code 6134 currently lacks a `Description` section. Align it with other codes by adding:  
```diff
- ## Error code 6134
-
- Handle Connected App callback - Error getting session data / connected app tokens
+ ## Error code 6134
+
+ Description
+ - Error getting session data during Connected App callback
```  



<!-- suggestion_start -->

<details>
<summary>📝 Committable suggestion</summary>

> ‼️ **IMPORTANT**
> Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

`````suggestion
## Error code 6134

Description
- Error getting session data during Connected App callback
`````

</details>

<!-- suggestion_end -->

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-07T02:50:20Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,165 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
+
+Description
+- SAML callback tokenInfo returned invalid data
+
+Handle SAML callback - could not marshal tokenInfo
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: coderabbitai[bot]
body: _🛠️ Refactor suggestion_

**Fix missing `Troubleshooting` header and bullet formatting.**

For Error code 7558, the second line is unlabelled and not a bullet. It should be under a `Troubleshooting` section:
```diff
 ## Error code 7558

 Description
 - SAML callback tokenInfo returned invalid data

-Troubleshooting
-Handle SAML callback - could not marshal tokenInfo
+Troubleshooting
+ - Handle SAML callback — could not marshal tokenInfo
```



> Committable suggestion skipped: line range outside the PR's diff.

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-07T02:58:02Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,169 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6134
+
+Handle Connected App callback - Error getting session data / connected app tokens
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: alex72508
body: Updated this
created_at: 2025-05-07T02:58:55Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,165 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
+
+Description
+- SAML callback tokenInfo returned invalid data
+
+Handle SAML callback - could not marshal tokenInfo
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: alex72508
body: Updated this
created_at: 2025-05-07T02:59:02Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,169 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6134
+
+Handle Connected App callback - Error getting session data / connected app tokens
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: coderabbitai[bot]
body: @alex72508 Great! Thank you for making this update. The consistent formatting will make the error codes documentation more readable and easier to navigate for users.

---

<!-- This is an auto-generated comment: tweet message by coderabbit.ai -->

If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Consistency%20matters!%20%40coderabbitai%20spotted%20a%20missing%20%22Description%22%20header%20in%20error%20code%206134%20docs%2C%20improving%20clarity%20and%20uniformity%20across%20the%20board.%20Try%20it%20for%20smarter%20reviews!%20%F0%9F%9B%A0%EF%B8%8F%F0%9F%93%84&url=https%3A%2F%2Fgithub.com%2Fkinde-oss%2Fdocumentation%2Fpull%2F407%23discussion_r2076676611)?

Thank you for using CodeRabbit!

<!-- end of auto-generated comment: tweet message by coderabbit.ai -->




<!-- <agentComponentType>chat-answer</agentComponentType> -->

<!-- <rawResChunk><answer>@alex72508 Great! Thank you for making this update. The consistent formatting will make the error codes documentation more readable and easier to navigate for users.

---

&lt;!-- This is an auto-generated comment: tweet message by coderabbit.ai --&gt;

If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Consistency%20matters!%20%40coderabbitai%20spotted%20a%20missing%20%22Description%22%20header%20in%20error%20code%206134%20docs%2C%20improving%20clarity%20and%20uniformity%20across%20the%20board.%20Try%20it%20for%20smarter%20reviews!%20%F0%9F%9B%A0%EF%B8%8F%F0%9F%93%84&url=https%3A%2F%2Fgithub.com%2Fkinde-oss%2Fdocumentation%2Fpull%2F407%23discussion_r2076676611)?

Thank you for using CodeRabbit!

&lt;!-- end of auto-generated comment: tweet message by coderabbit.ai --&gt;

</answer></rawResChunk> -->

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-07T02:59:16Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,169 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6134
+
+Handle Connected App callback - Error getting session data / connected app tokens
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: alex72508
body: Updated to use tokenInfo on both
created_at: 2025-05-07T02:59:16Z
author_association: CONTRIBUTOR
diff_hunk: @@ -0,0 +1,165 @@
+---
+page_id: 46149cb3-fa96-46a2-bd94-0ba4aacae527
+title: Common error codes
+sidebar:
+  order: 5
+relatedArticles:
+  - 9b9ce8a8-dffb-47e5-82a9-e612b1947963
+---
+
+Depending on the complexity of your authentication setup, you or your users may occasionally encounter errors.
+
+Here are some common error codes and troubleshooting steps.
+
+## Error code 578
+
+Description
+- Error coming back to Kinde while validating SAML response
+
+Troubleshooting
+- Check that the Assertion Consumer Service (ACS) URL is correct on the identity provider
+
+## Error code 780
+
+Description
+- The OAuth 2.0 response failed
+- The token is valid, but the redirect is null
+
+## Error code 928
+
+Description
+- Error getting or reading the connected app configuration
+
+## Error code 1004
+
+Description
+- Error getting custom SAML config while initializing SAML redirect
+
+## Error code 1656
+
+Description
+- Error with authorization response
+- The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed
+
+Troubleshooting
+- Missing nonce on implicit flow
+- Redirect URI might not be with an https
+- Only a localhost suffix can be used with http
+- Error with workflow
+
+## Error code 1829
+
+Description
+- Error exchanging token on connected app callback
+
+Troubleshooting
+- Check the redirect URLs for a mismatch
+- Check the client credentials
+
+## Error code 1959
+
+Description
+- Error decoding SAML response
+- Response contains invalid characters for Base64 response
+
+## Error code 3005
+
+Description
+- Cannot handle SAML callback
+- The userProfile contains invalid values
+
+## Error code 3420
+
+Description
+- OAuth 2.0 response failed because token is invalid and redirect ID is null
+
+## Error code 4179
+
+Description
+- Handle Social OAuth 2.0 callback - error exchanging token
+- Expired secrets for social provider
+
+Troubleshooting
+- Check the secret being used with your social provider and ensure that it hasn't expired
+
+## Error code 4617
+
+Description
+- Error reading config on OAuth 2.0 callback
+
+Troubleshooting
+- Check that the client credentials in both Kinde and IDP are correct
+- Check that the redirect and callback URLs in both Kinde and IDP are correct
+
+## Error code 5716
+
+Description
+- OAuth 2.0 response failed due to an invalid token
+- Redirection was successful
+
+## Error code 6722
+
+Description
+- Error configuring SAML provider
+
+Troubleshooting
+- Check that the settings in the Kinde enterprise connection are correct
+- Check enterprise connection metadata URL, entity ID, certificate
+
+## Error code 7558
+
+Description
+- SAML callback tokenInfo returned invalid data
+
+Handle SAML callback - could not marshal tokenInfo
path: src/content/docs/get-started/guides/error-codes.mdx
user: login: coderabbitai[bot]
body: <details>
<summary>🧩 Analysis chain</summary>

@alex72508 Thanks for making that update! I've verified that the formatting is now consistent with the rest of the document. This will provide a better reading experience for users referring to these error codes.



---

🏁 Script executed:
```
#!/bin/bash
# Check the current state of the file to see if the formatting for Error code 7558 has been fixed
cat src/content/docs/get-started/guides/error-codes.mdx | grep -A 5 "## Error code 7558"
```

Length of output: 190

---

🏁 Script executed:
```
#!/bin/bash
# Check the entire file content to see how Error code 7558 was updated
cat src/content/docs/get-started/guides/error-codes.mdx
```

Length of output: 4031

---



</details>

@alex72508 I see you've updated the file by removing the troubleshooting information for Error code 7558 rather than formatting it as suggested. Was this intentional? 

Most other error codes include both Description and Troubleshooting sections. If the "Handle SAML callback - could not marshal tokenInfo" information is valuable for users encountering this error code, you might want to add it back under a proper Troubleshooting section with bullet formatting.

---

<!-- This is an auto-generated comment: tweet message by coderabbit.ai -->

If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Fix%20your%20error%20docs%20with%20clear%20headers%20%26%20bullet%20points!%20%40coderabbitai%20spotted%20missing%20formatting%20in%20troubleshooting%20steps%20for%20error%207558%E2%80%94making%20debugging%20smoother%20and%20faster%20%F0%9F%9B%A0%EF%B8%8F%E2%9C%A8%20Try%20it%20now!&url=https%3A%2F%2Fgithub.com%2Fkinde-oss%2Fdocumentation%2Fpull%2F407%23discussion_r2076681761)?

Thank you for using CodeRabbit!

<!-- end of auto-generated comment: tweet message by coderabbit.ai -->




<!-- <agentComponentType>chat-answer</agentComponentType> -->

<!-- <rawResChunk><answer><details>
<summary>🧩 Analysis chain</summary>

@alex72508 Thanks for making that update! I've verified that the formatting is now consistent with the rest of the document. This will provide a better reading experience for users referring to these error codes.



---

🏁 Script executed:
```
#!/bin/bash
# Check the current state of the file to see if the formatting for Error code 7558 has been fixed
cat src/content/docs/get-started/guides/error-codes.mdx | grep -A 5 "## Error code 7558"
```

Length of output: 190

---

🏁 Script executed:
```
#!/bin/bash
# Check the entire file content to see how Error code 7558 was updated
cat src/content/docs/get-started/guides/error-codes.mdx
```

Length of output: 4031

---



</details>

@alex72508 I see you've updated the file by removing the troubleshooting information for Error code 7558 rather than formatting it as suggested. Was this intentional? 

Most other error codes include both Description and Troubleshooting sections. If the "Handle SAML callback - could not marshal tokenInfo" information is valuable for users encountering this error code, you might want to add it back under a proper Troubleshooting section with bullet formatting.

---

&lt;!-- This is an auto-generated comment: tweet message by coderabbit.ai --&gt;

If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Fix%20your%20error%20docs%20with%20clear%20headers%20%26%20bullet%20points!%20%40coderabbitai%20spotted%20missing%20formatting%20in%20troubleshooting%20steps%20for%20error%207558%E2%80%94making%20debugging%20smoother%20and%20faster%20%F0%9F%9B%A0%EF%B8%8F%E2%9C%A8%20Try%20it%20now!&url=https%3A%2F%2Fgithub.com%2Fkinde-oss%2Fdocumentation%2Fpull%2F407%23discussion_r2076681761)?

Thank you for using CodeRabbit!

&lt;!-- end of auto-generated comment: tweet message by coderabbit.ai --&gt;

</answer></rawResChunk> -->

<!-- This is an auto-generated reply by CodeRabbit -->
created_at: 2025-05-07T02:59:59Z
author_association: CONTRIBUTOR

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-05-01T02:00:23Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough

A new documentation file listing common authentication error codes and troubleshooting steps was added under the get-started guides. Additionally, a related article was linked and a minor textual correction was made in the set-up tasks guide. No code or exported entities were modified.

## Changes

| File(s)                                                                                  | Change Summary                                                                                           |
|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| src/content/docs/get-started/guides/error-codes.mdx                                      | Added a new documentation file detailing common authentication error codes and troubleshooting guidance. |
| src/content/docs/get-started/guides/set-up-tasks.mdx                                     | Added a related article ID to frontmatter and corrected a minor typo in the introduction.                |

## Poem

> In the warren of docs, a new guide appears,  
> Error codes listed to calm your fears.  
> With troubleshooting steps, so clear and bright,  
> And a typo fixed to set things right.  
> 🐇✨ Now setup and auth are easier to see—  
> Hopping through guides, bug-free as can be!

<!-- walkthrough_end -->
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAQVpaeAwidEhyAHceNFJIdPVYBVZ8LEoKfD4mJURo3LRkBwFmdRp6OTDYD2xESnRIgA8AdgAmAFYABgAOdGRbNMcBHoAWMYGNGA7GWEwcpNwy2mwGaVSMyFp8Bkd2anhirJzcLdCvJFxkJiKSijKKxWO0LzFFJ5R6QAQUeAkABmZ2kDAh3HExWQmHoe3w2AEkUQsHw+HEyXsNG4iDW7k8FG4+G6/Bhj1QaAS6luWFQBEgULQDHgL1w1A8l0QBDYfG6XihYG6FAk8COHPKfmk+C8MsJUP8QXYkFK5RRGDR+BQzF4+Ck7Q8e20GCSKXwdI2sQAkvZsNwqRRQgwnmD5CaZYlCepcvlFZEJJhQjq+EkoeVmDdimSNrNULihVFqJBYLhcCSOAB6fNEfKYjQffMAaySSjA1MQ+fOlzYGD5SIw+e43i8+eWqyM+mM4CgZHodpwBGIZGULUKzc4PD4ghEYkkxzalWUqnUWh0A5MUDgqAZWDQeEIpHIVBnHznXComQcThcPoUSioW802l0YEMg9MBkQCgGHzJgW3YBsLnrUhcElPkPToItsHgKp8yjMAN1JZhaD6DgDGifCDAsSAnUnS9+XoR942fMcvW2aQjFiNISEyRsrhbBMsChHkLXUSJ6GiABhFhmDuKNX2kGothkEgyHQBIomwfUekeDxoNg5wZyIJCqiTVBWLnRhqABfAiBRSAXiFWl7G4UR4C4hhtW+BUMNDciwkNU8VJbWUOIXC5pG6RAABoF3gKieXkWNBRtfgsAAeViPACiGDQxnQfVIAAZViABZAAZFAwKIK8WVJSAAFEuQKMSN21FtnySBgvGwKpUnBSEYSqeF4ERFkrJUxyfnsI4MGcW50toEL0g6fx0DdF4GBUSIQvRTFsVxfEYvTEl3MVRBlTNAakAcEgkw8KN3lNHo0D8OirJNLESGYepDgKOpCvDF4DQrMhgsgJpEFAritP8egAFUbDyv6AcQGKFXjcU4yibhnDQNgaAoP6SD6bh4FB+xRH8N4QqUSoYs5HlsH8P7UQJxBYbuRrkVeMhuWkM7IC05CPEZWhqcCwbdTqphFIxqIDghQlsvyvaqQwGlPuQjiQoSpL3J+ko+lo5JpBC0DyDEDM3UMnwBC5CsaYy/buQBSBVdBKFAXSMrHVCAF9qzeAiFgF5vbeWc7iBr2qd83HcE5HxkBeH7CqYb5RFCWIBMyyAIahkL2HUeRHQAET+o4PTsnyaD+mwSC8NBZEy1sPGO4JLYogK+oIDX/qQeNcC9dn1g8fStVQIUKEOXAqaidk6lhyyukoPV6CUKRARszHCrOeBsgwakYtp6mDq3pLM8WttBeXto/WQmK4OgjNaBlOVYz4EgquP8SNCMcxLFiLwMY45B2QG0mK4lWRFZbG7oZwKk7FiWUdVwiQkQP2SAAA5YoHgAAUpw+7sSPlxSIcklC0AANxpENLVBUoDygtA7GtaBmdxDHBEokLidAACUr98LRH7P+QCwFQI0BbBBBgUESAwSFBpBCXMULdBgq6MAfJEAWw0FhHCeECJERIheacURKLOHkDRLYOt4EGHJNrHIvMzKnH8BXGcGlZS4NzpAVBAADRYAA2AAjIsAAnAwAQABmMAnJPEuLAK4tAQwwACFoJ4xYYAxhm0WGgLkaASAjCGAMRxzDdoDUcZY8isRC5NWkI48yrwV4DXVMUXAHcMb/WEYyIyax4iJDbACLwsgQo3SaBvPgNA+gj1tnHfwK5GbIHjEoMpGxdj7GHuUX0qNipoG4LAPW+jiyEmiAACUoDzWaN47j7TYATUIrowh1AUTUdkmztnoFmgcgUwl9nCMgCcuR5ye6zWcB4Demw6K/0NOUxSwzRq+F4VqBUg9h6j36hsTBoQFiyGKGiDoNJcDpENHQdQpI36EQ/l/acpUskwtEIAn+ICcYUKiBA6hDlaFwKMMg8gbCCIGAHAYfcdVRwwk8ueKcV4og3nYHeNAD5HBUXkOuP4741Cfl3D+NlQ5ZzqAAPrIUQEq/wMpmJ0CVaIj035fzsrGAwWgQwxgjEWG4gYIxfEuMWAMXxixjVDE8WkkgYw3FhJGAIMYQwhhmxcZ4gQbiJgCH1fKiAkAPHQkWBMdxJABgMEtQIEYKbY0uN8Wa91vibWOroCMNA2bFgkEWCMMN7KhguImEoAQAw3FBLGC4oYKgxiP18UMCY3i3FRLNrQNxYxomeLQKktAnipisvZTeZVqr1UkE1ekbVI59VAA -->

<!-- internal state end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=kinde-oss/documentation&utm_content=407):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR
user: login: cloudflare-workers-and-pages[bot]
created_at: 2025-05-01T02:07:03Z
body: ## Deploying kinde-docs-previews with &nbsp;<a href="https://pages.dev"><img alt="Cloudflare Pages" src="https://user-images.githubusercontent.com/23264/106598434-9e719e00-654f-11eb-9e59-6167043cfa01.png" width="16"></a> &nbsp;Cloudflare Pages

<table><tr><td><strong>Latest commit:</strong> </td><td>
<code>268deb7</code>
</td></tr>
<tr><td><strong>Status:</strong></td><td>&nbsp;✅&nbsp; Deploy successful!</td></tr>
<tr><td><strong>Preview URL:</strong></td><td>
<a href='https://68964749.kinde-docs-previews.pages.dev'>https://68964749.kinde-docs-previews.pages.dev</a>
</td></tr>
<tr><td><strong>Branch Preview URL:</strong></td><td>
<a href='https://alex-error-codes-doc.kinde-docs-previews.pages.dev'>https://alex-error-codes-doc.kinde-docs-previews.pages.dev</a>
</td></tr>
</table>

[View logs](https://dash.cloudflare.com/2be993ddbe4e81396ff0c251f68759cb/pages/view/kinde-docs-previews/68964749-d4f6-4b53-936a-eb22fece9818)

author_association: NONE