UNPKG

better-auth

Version:

The most comprehensive authentication library for TypeScript.

12 lines (10 loc) 248 B
function toSolidStartHandler(auth) { const handler = async (event) => { return "handler" in auth ? auth.handler(event.request) : auth(event.request); }; return { GET: handler, POST: handler }; } export { toSolidStartHandler };