Limen: a modular authentication library for Go with a plugin for each auth method
Limen is an authentication library for Go that takes a plugin-first approach[1]. Its core provides interfaces, session management and security primitives, and each authentication method lives in its own importable Go module[2]. You can include only the parts your application needs, and the project is inspired by better-auth.
Out of the box, Limen offers credential/password authentication, OAuth 2.0, two-factor authentication and session management, and the documentation lists more. It adapts to the database and framework you use through an adapter[3], and the example in the README uses GORM with PostgreSQL. To start, you run go get, then create the app with limen.New and a Config that sets BaseURL, Database, Secret and Plugins; the secret can instead come from the LIMEN_SECRET environment variable.
Contributions are welcome through issues or pull requests. Security problems should be reported by email to security@limenauth.dev rather than in a public issue, and the project is released under the MIT License.
Repository Limen github.com
Modular authentication library for Go with a separate plugin per method, such as password login, OAuth 2.0 and two-factor auth.
Read the original github.comDiscussion
Sources
-
GitHub
Limen: auth library for Go, now with passkeys, admin tools, and database hooks


