Skip to content

spa5k/kratos-next

Repository files navigation

Ory Kratos Next.Js Self Service Ui Example on typescript.

kratos

Extremely simple and minimal self service ui example on implementation of Kratos on Next.js without much abstraction for easier understanding of basic principles.

sample

Steps.

  1. Run the docker by doing docker-compose up.
  2. It starts the Kratos server at 127.0.0.1:4433.
  3. Run the next js by doing yarn dev.
  4. Open next js page on 127.0.0.1:3000.

Things to consider.

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.

Flows implemented.

  • Login
  • Register
  • Recovery
  • Verification
  • Dashboard
  • Oidc

FAQs.

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.

About

Ory Kratos Next.Js Self Service Ui Example on typescript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published