Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/integrations/better-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,13 @@ However if we are using [@elysiajs/openapi](/plugins/openapi), you might want to

We may do that with the following code:


```ts
export const auth = betterAuth({
  plugins: [openAPI()], // [!code ++]
});


import { openAPI } from 'better-auth/plugins'

let _schema: ReturnType<typeof auth.api.generateOpenAPISchema>
Expand Down