[PR #193] [MERGED] auth: clarify invalid origin error toast guidance #180

Closed
opened 2026-02-27 15:55:26 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/193
Author: @arunavo4
Created: 2/26/2026
Status: Merged
Merged: 2/26/2026
Merged by: @arunavo4

Base: mainHead: codex/fix-invalid-origin-toast-173


📝 Commits (2)

  • 7bf440f nix: fix flake module and runtime scripts
  • f7c0a29 auth: clarify invalid origin toast

📊 Changes

3 files changed (+227 additions, -166 deletions)

View changed files

📝 flake.nix (+160 -158)
📝 src/lib/utils.test.ts (+27 -0)
📝 src/lib/utils.ts (+40 -8)

📄 Description

Summary

  • improve Invalid Origin Sonner toast messaging
  • explicitly tell users to add the origin to BETTER_AUTH_TRUSTED_ORIGINS
  • preserve existing error parsing behavior for other error types

Testing

  • bun test src/lib/utils.test.ts

Closes #173


🔄 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/RayLabsHQ/gitea-mirror/pull/193 **Author:** [@arunavo4](https://github.com/arunavo4) **Created:** 2/26/2026 **Status:** ✅ Merged **Merged:** 2/26/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `codex/fix-invalid-origin-toast-173` --- ### 📝 Commits (2) - [`7bf440f`](https://github.com/RayLabsHQ/gitea-mirror/commit/7bf440f3e02633d20c9ad359b533ab66121810f6) nix: fix flake module and runtime scripts - [`f7c0a29`](https://github.com/RayLabsHQ/gitea-mirror/commit/f7c0a29fc3b203e69e981459f7d23f58ab968f14) auth: clarify invalid origin toast ### 📊 Changes **3 files changed** (+227 additions, -166 deletions) <details> <summary>View changed files</summary> 📝 `flake.nix` (+160 -158) 📝 `src/lib/utils.test.ts` (+27 -0) 📝 `src/lib/utils.ts` (+40 -8) </details> ### 📄 Description ## Summary - improve `Invalid Origin` Sonner toast messaging - explicitly tell users to add the origin to `BETTER_AUTH_TRUSTED_ORIGINS` - preserve existing error parsing behavior for other error types ## Testing - bun test src/lib/utils.test.ts Closes #173 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:55:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gitea-mirror#180
No description provided.