diff --git a/docs/content/docs/plugins/api-key.mdx b/docs/content/docs/plugins/api-key.mdx
index c810ede205..2d5ba413a4 100644
--- a/docs/content/docs/plugins/api-key.mdx
+++ b/docs/content/docs/plugins/api-key.mdx
@@ -384,7 +384,7 @@ Any time an endpoint in Better Auth is called that has a valid API key in the he
export const auth = betterAuth({
plugins: [
apiKey({
- sessionForAPIKeys: true,
+ enableSessionForAPIKeys: true,
}),
],
});
@@ -725,9 +725,9 @@ Customize the rate-limiting.
Custom schema for the API key plugin.
-`disableSessionForAPIKeys` `boolean`
+`enableSessionForAPIKeys` `boolean`
-An API Key can represent a valid session, so we automatically mock a session for the user if we find a valid API key in the request headers.
+An API Key can represent a valid session, so we can mock a session for the user if we find a valid API key in the request headers. Default is `false`.
`permissions` `{ defaultPermissions?: Statements | ((userId: string, ctx: GenericEndpointContext) => Statements | Promise) }`