Skip to content

feat(core): support configurable api prefix and decouple plugin endpoints#9

Open
xmmendezy wants to merge 2 commits into
mrnpro:mainfrom
xmmendezy:main
Open

feat(core): support configurable api prefix and decouple plugin endpoints#9
xmmendezy wants to merge 2 commits into
mrnpro:mainfrom
xmmendezy:main

Conversation

@xmmendezy

Copy link
Copy Markdown

feat(core): support configurable api prefix and decouple plugin endpoints

  • support optional, configurable api prefix via BetterAuthClient.create
  • default api prefix remains /api/auth to maintain backward compatibility
  • refactor ApiEndpoints in core to use runtime-evaluated static getters
  • isolate and decouple plugin endpoints into dedicated class configurations
  • update phone and two-factor plugins to use their respective local endpoints
  • add unit tests verifying custom prefixing and default configurations
  • document configurable prefix usage with clear examples in README.md
  • resolve pre-existing static analysis warnings and lints across the codebase

xmmendezy and others added 2 commits May 21, 2026 14:04
…ints

- support optional, configurable api prefix via `BetterAuthClient.create`
- default api prefix remains `/api/auth` to maintain backward compatibility
- refactor `ApiEndpoints` in core to use runtime-evaluated static getters
- isolate and decouple plugin endpoints into dedicated class configurations
- update phone and two-factor plugins to use their respective local endpoints
- add unit tests verifying custom prefixing and default configurations
- document configurable prefix usage with clear examples in README.md
- resolve pre-existing static analysis warnings and lints across the codebase
- add optional User return to social() sign-in
- change idToken from Map to String? for native token flow
- implement direct native sign-in path via idToken with web fallback
- make callbackURL optional in forgotPassword request
- remove unused name/image/callbackUrl fields from sign-up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant