Keyring for Go docsOverview

Keyring for Go Documentation

On this page

Keyring has a Go implementation for Laravel for Go: the keyringauth.com/go package. It handles the authentication side of a Laravel for Go application: signing in, registration, password resets, email verification, second factors, passkeys, single sign-on, step-up, devices, sessions and account changes. It ships no UI. Your app owns the pages and the account actions.

The package is early. It shares no code with the PHP package, but it shares a database and the HTTP contract suite, so the routes, JSON, status codes and tables are the same, and a frontend built against one works with the other. These pages mirror the PHP docs page by page, and say where the Go port differs. Differences From PHP collects every difference in one place.

Getting Started

  • Quick Start: the starter kit, the pages to build, and your settings page.
  • Installation: requirements, the module, and registering the package.
  • Configuration: every field of keyring.Config, and the hooks on Keyring.
  • Upgrading From Fortify: importing two-factor data, and mapping Fortify's concepts.

Signing In

Account Security

Security

Building Your Application

  • Frontend: the Inertia pages, and the @keyringjs/keyring package.
  • Headless Frontends: a frontend Laravel for Go doesn't serve.
  • Starter Kit: every page but the sign-in-link page (which only matters with WithLink() on), written in React.
  • Extending Keyring: every option and hook in one place.
  • Recipes: worked examples.
  • Testing: test helpers, fakes, factories and the conformance checks.

The Package