Extremely simple and minimal self service ui example on implementation of Kratos on Next.js without much abstraction for easier understanding of basic principles.
- Run the docker by doing
docker-compose up
. - It starts the Kratos server at
127.0.0.1:4433
. - Run the next js by doing
yarn dev
. - Open next js page on
127.0.0.1:3000
.
Remember that this example is using github oidc, so before starting it, add client secret and client id in config otherwise it won't start.
- Login
- Register
- Recovery
- Verification
- Dashboard
- Oidc
There are many things left to implement like unlinking and linking the accounts from settings, but that's out of the scope of this minimal example. I believe rest things can be easily implemented after reading the code.