minimal

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Command minimal is a runnable, end-to-end Credbound integration: PostgreSQL persistence through pgx, the embedded migrations, Argon2id password hashing, and a net/http layer backed by Credbound's server-side session module (CreateSession, AuthenticateSession, SignOut), following the "Sessions and the Authentication capability" contract from the README. TOTP and passkey providers are deliberately omitted to show that they are optional: the related flows simply return ErrNotSupported.

CREDBOUND_POSTGRES_DSN=postgres://localhost/credbound go run ./examples/minimal
curl -c jar -X POST -d 'email=root@example.com' --data-urlencode 'password=correct horse battery staple' http://127.0.0.1:8080/signin
curl -b jar http://127.0.0.1:8080/me
curl -b jar -X POST http://127.0.0.1:8080/signout

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL