[PR #8578] docs: update Openfort Documentation #16321

Closed
opened 2026-04-13 10:29:35 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8578

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8578 **State:** closed **Merged:** Yes --- ## 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. -->
GiteaMirror added the pull-request label 2026-04-13 10:29:35 -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#16321