This project demonstrates how to implement authentication using zio-http. It includes features for managing user creation and password setting workflows. While the project is designed to be reusable as a library for other projects, it may not be generic enough for widespread use.
- Authentication: Provides routes for login, logout, and token management.
- User Management: Includes workflows for user creation and password setting.
- Frontend Integration: Uses
scalajs-reactfor the frontend, with a sampleLoginRouterprovided for easy integration.
To use this project as a library:
- Override the
AuthServerclass and provide it in your environment. - This will give you access to the authentication routes, which you can add to your
zio-httpserver.
On the frontend, the project uses scalajs-react. You can include the LoginRouter component into your application to handle authentication workflows. A sample implementation is provided in the project to help you get started.
For more details, refer to the zio-auth Microsite.
Contributions are welcome! Please refer to the Contributing Guide for more information.
This project adheres to the Code of Conduct. Please read it to understand the expectations for participation.
If you need help, feel free to join the discussion on Discord.
This project is licensed under the terms of the License.