POST /auth/ask
{
"email": "[email protected]"
}
Set-Cookie: questionId
OK
POST /auth/answer
{
"answer": "123456"
}
Set-Cookie: sessionId
OK
POST /data?domain=www.google.com
{
"user": {
"email": "[email protected]"
},
"website": {
"name": "Google",
"domain": "www.google.com"
},
"token": "xxx.yyy.zzz"
}
website
and token
are only non-null if domain
is registered as a verified website.
POST /auth/logout
Set-Cookie: sessionId; MaxAge=-1
OK
GET /public-key
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAxtpolRhOgtz05Ylj9CU4
st3VC2BcsbeiHcv/DhOLWzaLGBi3sS+ZZS7GUHhhKDgZ6sgFoABV+dMOGGjJJ9y1
+EH79LvwI0kJ+gqdzg7oeFGmJcwj8wyS02AMkTknv4lckgk+2aMCWRFFRoBP/i4g
ligZz59uherBM8goxVToq4XLlIAVbWlSW43ohXRfkRmLHT9z61thw5B/3DF3dMui
7Q5DewIt+REibiLygXf3RVuw13kTvMC+WA632cy0o+AVmJ+8e/oHM2mT/weahjAZ
TNwLS09SakuKacIT+TH/OVHXpSo13m810NgXl5MkcVsoz0+JANOVG4kOA4uY33Ru
j6RPurqOSmoMwnymoJJBNW6fXHC50HBVmFKS34JFhBd4Nmko8PPjq9SVeQSv4Y8d
kFN73vD4XWYbTuvx8z+Zw33pIQD7EmFDDAELusBLQoQp3aU4uNrFOCdKsjZ3l2mG
Vd0652KpAl29IuTUG1DLGJJpiz076V4RRg24BphOnP88/2OEq6+mFAmessHCLhzZ
s/LcAA6HL1urZYgbNycRuIRPk3RSvy/z9idjfrnRgcPFZSlCIPuNloUL6TqVkQln
sumxXQYXRpuINr1OL4r2goMx9KjJrNF4jSkCV8Is9EkzvaQhvnWrSVWIv/xd65om
YHiuMU3YNbK6bGrMzghxpocCAwEAAQ==
-----END PUBLIC KEY-----
pnpm install
pnpm build
pnpm start
pnpm run generate-keys