[PR #4492] [MERGED] fix: Cognito documentation #5409

Closed
opened 2026-03-13 12:21:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4492
Author: @spoon16
Created: 9/7/2025
Status: Merged
Merged: 9/7/2025
Merged by: @Bekacru

Base: mainHead: patch-2


📝 Commits (2)

  • dd0057b fix: Cognito documentation
  • 27673ec chore: update code example

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 docs/content/docs/authentication/cognito.mdx (+5 -5)

📄 Description

The Cognito documentation contains invalid code snippets.


Summary by cubic

Fixed the Cognito docs to match the current API and prevent copy/paste setup errors. The example now uses socialProviders.cognito with CognitoOptions instead of the outdated socialProvider + cognito(...) call.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4492 **Author:** [@spoon16](https://github.com/spoon16) **Created:** 9/7/2025 **Status:** ✅ Merged **Merged:** 9/7/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (2) - [`dd0057b`](https://github.com/better-auth/better-auth/commit/dd0057bfd871bc7df3c626bbd1d165f4d2c7d5d1) fix: Cognito documentation - [`27673ec`](https://github.com/better-auth/better-auth/commit/27673ecccf0b134c1bbaf8a22dba3b40c220d4a1) chore: update code example ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/cognito.mdx` (+5 -5) </details> ### 📄 Description The Cognito documentation contains invalid code snippets. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the Cognito docs to match the current API and prevent copy/paste setup errors. The example now uses socialProviders.cognito with CognitoOptions instead of the outdated socialProvider + cognito(...) call. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 12:21:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#5409