[PR #8578] [MERGED] docs: update Openfort Documentation #24975

Closed
opened 2026-04-15 22:39:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8578
Author: @isardmart
Created: 3/12/2026
Status: Merged
Merged: 3/12/2026
Merged by: @himself65

Base: canaryHead: feat/openfort-docs


📝 Commits (7)

  • 26fda44 feat(sidebar): add Openfort link and icon to sidebar content
  • 450e200 fix(docs): improve formatting and clarify optional steps in Openfort documentation
  • a6ef18e feat: improvement import
  • 0373134 feat: added docuementation of the new openfort react sdk major version
  • 7f885a3 fix: color on opf logo
  • f3d9f98 fix: unnecessary wording
  • 55029d7 fix: Wagmi with proper wording

📊 Changes

1 file changed (+196 additions, -109 deletions)

View changed files

📝 docs/content/docs/plugins/openfort.mdx (+196 -109)

📄 Description

Summary

  • Updates Openfort plugin documentation to reflect the new
    @openfort/react major version
  • Covers EVM and Solana embedded wallet support via the new
    React SDK API
  • Documents OpenfortWagmiBridge for wagmi integration and new
    chain-specific config structure
  • Updates provider setup, hooks (useEthereumEmbeddedWallet,
    useSolanaEmbeddedWallet), and OpenfortProvider props

Summary by cubic

Updates the Openfort plugin docs for the new @openfort/react major version. Adds EVM and Solana guides, new hooks, Wagmi bridge, and updated config/env vars.

  • New Features

    • Documents multi-chain support: EVM and/or Solana.
    • Adds OpenfortWagmiBridge and getDefaultConfig from @openfort/react/wagmi.
    • Shows OpenfortProvider working standalone (Wagmi/React Query only if you use Wagmi hooks).
    • Adds chain-specific hooks: useEthereumEmbeddedWallet and useSolanaEmbeddedWallet.
    • Updates useUser usage and examples.
  • Migration

    • Replace useWallets().createWallet({ recovery: { ... }}) with useEthereumEmbeddedWallet().create(...) or useSolanaEmbeddedWallet().create(...).
    • Move to chain-scoped config: walletConfig.ethereum / walletConfig.solana. Rename ethereumProviderPolicyId to ethereum.ethereumFeeSponsorshipId.
    • Rename env var VITE_POLICY_ID to VITE_FEE_SPONSORSHIP_ID.
    • getEncryptionSession now receives { accessToken, otpCode, userId } (or use createEncryptedSessionEndpoint). recoverWalletAutomaticallyAfterAuth is replaced by connectOnLogin.
    • Install peer deps per chain: EVM → viem + wagmi; Solana → @solana/kit.

Written for commit 55029d7a89. Summary will update on new commits.


🔄 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/8578 **Author:** [@isardmart](https://github.com/isardmart) **Created:** 3/12/2026 **Status:** ✅ Merged **Merged:** 3/12/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/openfort-docs` --- ### 📝 Commits (7) - [`26fda44`](https://github.com/better-auth/better-auth/commit/26fda440e15a9f3ceca50d4d280c13149e3c0bd6) feat(sidebar): add Openfort link and icon to sidebar content - [`450e200`](https://github.com/better-auth/better-auth/commit/450e200d6d4fb5ce99607f27c4047a3e1904885e) fix(docs): improve formatting and clarify optional steps in Openfort documentation - [`a6ef18e`](https://github.com/better-auth/better-auth/commit/a6ef18e424af573b721359c38f9b23d71ef265c2) feat: improvement import - [`0373134`](https://github.com/better-auth/better-auth/commit/0373134dd56c6a9b6730793b46bc19d6c42d8ad0) feat: added docuementation of the new openfort react sdk major version - [`7f885a3`](https://github.com/better-auth/better-auth/commit/7f885a3be280a5c3f55510f33701189a1107a193) fix: color on opf logo - [`f3d9f98`](https://github.com/better-auth/better-auth/commit/f3d9f98028819478b065ca92a4cc08d7ab1d4a35) fix: unnecessary wording - [`55029d7`](https://github.com/better-auth/better-auth/commit/55029d7a893f7d698dbf83958297d79071738156) fix: Wagmi with proper wording ### 📊 Changes **1 file changed** (+196 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/openfort.mdx` (+196 -109) </details> ### 📄 Description ## Summary - Updates Openfort plugin documentation to reflect the new `@openfort/react` major version - Covers EVM and Solana embedded wallet support via the new React SDK API - Documents `OpenfortWagmiBridge` for wagmi integration and new chain-specific config structure - Updates provider setup, hooks (`useEthereumEmbeddedWallet`, `useSolanaEmbeddedWallet`), and `OpenfortProvider` props <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updates the Openfort plugin docs for the new `@openfort/react` major version. Adds EVM and Solana guides, new hooks, Wagmi bridge, and updated config/env vars. - New Features - Documents multi-chain support: EVM and/or Solana. - Adds `OpenfortWagmiBridge` and `getDefaultConfig` from `@openfort/react/wagmi`. - Shows `OpenfortProvider` working standalone (Wagmi/React Query only if you use Wagmi hooks). - Adds chain-specific hooks: `useEthereumEmbeddedWallet` and `useSolanaEmbeddedWallet`. - Updates `useUser` usage and examples. - Migration - Replace `useWallets().createWallet({ recovery: { ... }})` with `useEthereumEmbeddedWallet().create(...)` or `useSolanaEmbeddedWallet().create(...)`. - Move to chain-scoped config: `walletConfig.ethereum` / `walletConfig.solana`. Rename `ethereumProviderPolicyId` to `ethereum.ethereumFeeSponsorshipId`. - Rename env var `VITE_POLICY_ID` to `VITE_FEE_SPONSORSHIP_ID`. - `getEncryptionSession` now receives `{ accessToken, otpCode, userId }` (or use `createEncryptedSessionEndpoint`). `recoverWalletAutomaticallyAfterAuth` is replaced by `connectOnLogin`. - Install peer deps per chain: EVM → `viem` + `wagmi`; Solana → `@solana/kit`. <sup>Written for commit 55029d7a893f7d698dbf83958297d79071738156. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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 22:39:55 -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#24975