[GH-ISSUE #3220] Swift client SDK support #9526

Closed
opened 2026-04-13 05:01:22 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @idolize on GitHub (Jun 29, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/3220

Is this suited for github?

  • Yes, this is suited for github

I'd love to add Better Auth to my native SwiftUI application, but I see there isn't an existing client library available, so I figured I'd submit a formal feature request.

Describe the solution you'd like

A Swift package that mirrors the primary functions of the JS library would be ideal.

I would potentially be interested in contributing an implementation as well (if that is welcome), but there don't appear to be many docs on how to integrate with Better Auth outside of the JS client library. Even just adding that somewhere would be a great start in my opinion.

Describe alternatives you've considered

As stated in the previous section, even having a page with guidance on how to integrate with Better Auth "manually" would be super helpful (and if you don't want to officially "bless" or maintain implementations in other languages, then maybe just linking to third party client libraries on this page could be great)

Additional context

No response

Originally created by @idolize on GitHub (Jun 29, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/3220 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I'd love to add Better Auth to my native SwiftUI application, but I see there isn't an existing client library available, so I figured I'd submit a formal feature request. ### Describe the solution you'd like A Swift package that mirrors the primary functions of the JS library would be ideal. I would potentially be interested in contributing an implementation as well (if that is welcome), but there don't appear to be many docs on how to integrate with Better Auth outside of the JS client library. Even just adding that somewhere would be a great start in my opinion. ### Describe alternatives you've considered As stated in the previous section, even having a page with guidance on how to integrate with Better Auth "manually" would be super helpful (and if you don't want to officially "bless" or maintain implementations in other languages, then maybe just linking to third party client libraries on this page could be great) ### Additional context _No response_
GiteaMirror added the enhancementlocked labels 2026-04-13 05:01:22 -05:00
Author
Owner

@nexa-li commented on GitHub (Jun 30, 2025):

I have the same need. Currently, I can only establish interactions myself through API endpoints. You can consider adding OpenApi plugin to see all routes.

<!-- gh-comment-id:3017684645 --> @nexa-li commented on GitHub (Jun 30, 2025): I have the same need. Currently, I can only establish interactions myself through API endpoints. You can consider adding OpenApi plugin to see all routes.
Author
Owner

@dosubot[bot] commented on GitHub (Sep 29, 2025):

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

Issue Summary:

  • You requested a native Swift client SDK for Better Auth to ease integration with SwiftUI apps.
  • You proposed a Swift package similar to the existing JavaScript library and offered to contribute.
  • The maintainer acknowledged the need and suggested using the OpenApi plugin as a current workaround.
  • The issue highlights ongoing demand for better Swift support and improved documentation for manual integration.
  • No resolution or further updates have been provided recently.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open.
  • Otherwise, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3347832062 --> @dosubot[bot] commented on GitHub (Sep 29, 2025): Hi, @idolize. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested a native Swift client SDK for Better Auth to ease integration with SwiftUI apps. - You proposed a Swift package similar to the existing JavaScript library and offered to contribute. - The maintainer acknowledged the need and suggested using the OpenApi plugin as a current workaround. - The issue highlights ongoing demand for better Swift support and improved documentation for manual integration. - No resolution or further updates have been provided recently. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open. - Otherwise, this issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@idolize commented on GitHub (Sep 29, 2025):

Hi yes, as a feature request, this is still relevant. Thanks!

<!-- gh-comment-id:3347983761 --> @idolize commented on GitHub (Sep 29, 2025): Hi yes, as a feature request, this is still relevant. Thanks!
Author
Owner

@ouwargui commented on GitHub (Oct 2, 2025):

@idolize I built https://github.com/ouwargui/BetterAuthSwift

It doesn't support all plugins already, but the core functionality is there. I would love for you to take a look if you want. Also, let me know which plugins you use the most and I can prioritize! Thx

<!-- gh-comment-id:3362240180 --> @ouwargui commented on GitHub (Oct 2, 2025): @idolize I built https://github.com/ouwargui/BetterAuthSwift It doesn't support all plugins already, but the core functionality is there. I would love for you to take a look if you want. Also, let me know which plugins you use the most and I can prioritize! Thx
Author
Owner

@dosubot[bot] commented on GitHub (Jan 1, 2026):

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

Issue Summary:

  • You requested a native Swift client SDK for Better Auth to ease integration with SwiftUI apps and offered to contribute.
  • Another user suggested using the OpenApi plugin as a temporary workaround.
  • You confirmed that the request is still relevant.
  • A community-built Swift SDK (BetterAuthSwift) was shared, covering core functionality and inviting feedback.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open.
  • If I don’t hear back within 7 days, I will automatically close this issue.

Thanks for your understanding and contribution!

<!-- gh-comment-id:3703861785 --> @dosubot[bot] commented on GitHub (Jan 1, 2026): Hi, @idolize. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested a native Swift client SDK for Better Auth to ease integration with SwiftUI apps and offered to contribute. - Another user suggested using the OpenApi plugin as a temporary workaround. - You confirmed that the request is still relevant. - A community-built Swift SDK (BetterAuthSwift) was shared, covering core functionality and inviting feedback. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open. - If I don’t hear back within 7 days, I will automatically close this issue. Thanks for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#9526