Add Key sign-in to your site

Two different things

Your setup, once

You, the site's owner, sign in to Key once and allow it to make an app for your site. That gives your site its own sign-in. You do it once per site, and again only if you need a new secret key.

Your visitors, every time

Your visitors never do the setup. They click your site's Sign in button, type the code Key emails them, and they're back on your site, signed in. If you're clicking Sign in on someone's site, you're a visitor, not setting anything up.

The one-time setup

Where each value goes

The app id

It starts with app_ and is public. Put it in your site's settings as its client id.

The secret key

Save it in your password manager first, then in your host's secret settings, never in your code. Key shows it once. If it's lost, make a new one and revoke the old one.

How to tell it worked

Open your site's sign-in link. It should take you to Key's sign-in page, not an error.

What your visitors get