Skip to content

Commit 8b7c2ce

Browse files
committed
feat: update authentication documentation and API access method to use await authManager.getApi()
1 parent 99dece0 commit 8b7c2ce

7 files changed

Lines changed: 87 additions & 74 deletions

File tree

content/docs/guides/authentication.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The plugin uses a **direct forwarding** architecture where all authentication re
4646
- Full compatibility with all Better-Auth features
4747
- Minimal custom code to maintain
4848
- Easy updates when Better-Auth releases new features
49-
- Type-safe API access via `authManager.api`
49+
- Type-safe API access via `await authManager.getApi()`
5050

5151
---
5252

packages/plugins/plugin-auth/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ rawApp.all('/api/v1/auth/*', async (c) => {
105105
**Solutions:**
106106
- Use Hono middleware for request interception if needed
107107
- Use better-auth plugins for custom behavior
108-
- Access `authManager.api` for programmatic operations
108+
- Access `await authManager.getApi()` for programmatic operations
109109

110110
## Results
111111

packages/plugins/plugin-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This architecture provides:
181181
-**Full compatibility** - All better-auth features work automatically
182182
-**Easy updates** - Better-auth updates don't require code changes
183183
-**Type safety** - Full TypeScript support from better-auth
184-
-**Programmatic API** - Access auth methods via `authManager.api`
184+
-**Programmatic API** - Access auth methods via `await authManager.getApi()`
185185

186186
#### ObjectQL Database Architecture
187187

0 commit comments

Comments
 (0)