How to specify auth method in OpenAPI specification

How do I specify my securitySchema in my OpenAPI specification when using better-auth? Specifically if I'm using the standard session-based auth and/or JWT tokens? I assume that I should use something here: https://swagger.io/docs/specification/v3_0/authentication/cookie-authentication/, but I don't know what to specify in the cookie name.
2 Replies
bekacru
bekacru16h ago
the open api plugin doesn't allow passing much of a config so this is not supported. But feel free to open gh issue.
Christian (N0_L0gic)
Hm. I’m not using the OpenAPI plugin atm, but rather writing an OpenAPI specification externally for my api

Did you find this page helpful?