yarn
- Copy the file
.sample-env
to.env
- Create a new application on on https://dev.usekeyp.com.
- Set the redirect URI to
http://localhost:3000/api/auth/callback/keyp
(note that your port may be different). Ready for production? Make sure to upate this to eg.https://my-site.com/api/auth/callback/keyp
. - Copy the "CLIENT ID" for your application and set it to
KEYP_CLIENT_ID
in.env
- In the
.env
, setTOKEN_SECRET
to a random string, which is used fornext-auth
session cookies. You can generate this usingopenssl rand -base64 32
. (NOTE: Do not use your access token here)
yarn dev