better-auth-capacitor? in addition to expo #913

Closed
opened 2026-03-13 08:09:42 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @rockiestar-com on GitHub (Mar 25, 2025).

Is this suited for github?

  • Yes, this is suited for github

https://capacitorjs.com/ is a great mobile framework and we would love to see the support for it.

Describe the solution you'd like

a plugin

Describe alternatives you've considered

hand written

Additional context

No response

Originally created by @rockiestar-com on GitHub (Mar 25, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. https://capacitorjs.com/ is a great mobile framework and we would love to see the support for it. ### Describe the solution you'd like a plugin ### Describe alternatives you've considered hand written ### Additional context _No response_
Author
Owner

@dosubot[bot] commented on GitHub (Jun 24, 2025):

Hi, @rockiestar-com. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Request for a plugin to support the Capacitor mobile framework.
  • Highlighted as a preferable alternative to Expo for enhanced authentication features.
  • Preference for a plugin to simplify implementation over hand-written solutions.
  • No further comments or developments on the issue.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jun 24, 2025): Hi, @rockiestar-com. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Request for a plugin to support the Capacitor mobile framework. - Highlighted as a preferable alternative to Expo for enhanced authentication features. - Preference for a plugin to simplify implementation over hand-written solutions. - No further comments or developments on the issue. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If no updates are provided, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@oxedom commented on GitHub (Nov 12, 2025):

Is there support for it? I don't see why BetterAuth would need top directly support this framework

@dosubot

@oxedom commented on GitHub (Nov 12, 2025): Is there support for it? I don't see why BetterAuth would need top directly support this framework @dosubot
Author
Owner

@dosubot[bot] commented on GitHub (Nov 12, 2025):

There isn't official BetterAuth support or a dedicated plugin for Capacitor.js. However, integration is possible: users have successfully used BetterAuth in Capacitor apps by configuring trustedOrigins to include the app URL and handling CORS and authentication headers on the server side. For native auth (like Apple sign-in), you can use Capacitor plugins and then update BetterAuth's session state with the tokens you get. There’s no built-in Capacitor plugin, but the system is extensible—if you need deeper integration, you could adapt the approach used for Expo. Some advanced features (like magic-link) may require extra testing, as maintainers haven’t directly validated those flows in Capacitor environments yet.
See discussion and examples

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 12, 2025): <!-- Answer --> There isn't official BetterAuth support or a dedicated plugin for Capacitor.js. However, integration is possible: users have successfully used BetterAuth in Capacitor apps by configuring trustedOrigins to include the app URL and handling CORS and authentication headers on the server side. For native auth (like Apple sign-in), you can use Capacitor plugins and then update BetterAuth's session state with the tokens you get. There’s no built-in Capacitor plugin, but the system is extensible—if you need deeper integration, you could adapt the approach used for Expo. Some advanced features (like magic-link) may require extra testing, as maintainers haven’t directly validated those flows in Capacitor environments yet. [See discussion and examples](https://github.com/better-auth/better-auth/issues/917) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/968febea-8aa9-456a-bbc6-ab16253f2db6?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/1998)
Author
Owner

@productdevbook commented on GitHub (Jan 29, 2026):

better-auth-capacitor I published a library related to this.

@productdevbook commented on GitHub (Jan 29, 2026): [better-auth-capacitor](https://github.com/productdevbook/better-auth-capacitor) I published a library related to this.
Author
Owner

@maelp commented on GitHub (Feb 26, 2026):

I also have posted an issue here https://github.com/better-auth/better-auth/issues/8163

@maelp commented on GitHub (Feb 26, 2026): I also have posted an issue here https://github.com/better-auth/better-auth/issues/8163
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#913