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
Click to show internal directories.
Click to hide internal directories.