[PR #257] [CLOSED] Use util function to get base url #20090

Closed
opened 2026-04-15 19:28:11 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/257
Author: @luksch42
Created: 10/20/2024
Status: Closed

Base: mainHead: use-util-function-to-get-base-url


📝 Commits (4)

  • fbcf464 fix: use better auth url in nextjs middleware
  • c139876 fix: rename url to base url
  • 4711c17 refactor: use the util function to get the base url in middleware and passkey plugin
  • a1c5b58 docs: fix next headers import (#256)

📊 Changes

3 files changed (+8 additions, -7 deletions)

View changed files

📝 docs/content/docs/concepts/api.mdx (+2 -2)
📝 packages/better-auth/src/integrations/next-js.ts (+4 -4)
📝 packages/better-auth/src/plugins/passkey/index.ts (+2 -1)

📄 Description

@Bekacru I found the getBaseURL() utility and used it to retrieve the base URL in the passkey plugin too.


🔄 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/257 **Author:** [@luksch42](https://github.com/luksch42) **Created:** 10/20/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `use-util-function-to-get-base-url` --- ### 📝 Commits (4) - [`fbcf464`](https://github.com/better-auth/better-auth/commit/fbcf464192b336fb2699ede48fefe40e75553b60) fix: use better auth url in nextjs middleware - [`c139876`](https://github.com/better-auth/better-auth/commit/c1398767979949f714bd8c21e74eb5492a0c1cde) fix: rename url to base url - [`4711c17`](https://github.com/better-auth/better-auth/commit/4711c175a345a24dcf798d22ec8ee0280c181037) refactor: use the util function to get the base url in middleware and passkey plugin - [`a1c5b58`](https://github.com/better-auth/better-auth/commit/a1c5b589869a5ac28a1d514001130c503ba8bb76) docs: fix next headers import (#256) ### 📊 Changes **3 files changed** (+8 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/api.mdx` (+2 -2) 📝 `packages/better-auth/src/integrations/next-js.ts` (+4 -4) 📝 `packages/better-auth/src/plugins/passkey/index.ts` (+2 -1) </details> ### 📄 Description @Bekacru I found the getBaseURL() utility and used it to retrieve the base URL in the passkey plugin too. --- <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-04-15 19:28:12 -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#20090