Links

Accounts

Authentication

get
https://demo.getlynx.dev/api
/auth/me
Get Account
post
https://demo.getlynx.dev/api
/auth/login
Log In
post
https://demo.getlynx.dev/api
/auth/register
Register
delete
https://demo.getlynx.dev/api
/auth/me
Log Out

Two-Factor Authentication (2FA)

get
https://demo.getlynx.dev/api
/auth/totp
Get new TOTP token
post
https://demo.getlynx.dev/api
/auth/totp
Enable 2FA
delete
https://demo.getlynx.dev/api
/auth/totp
Disable 2FA

Account Recovery

post
https://demo.getlynx.dev/api
/auth/totp/recover
Recover Account

Manual Recovery

If you didn't save your backup codes you will need to run the following commands in your mongodb container/instance
Connect to your database and enter your password:
mongosh --port 27017 --username user --authenticationDatabase admin
Switch to the lynx database:
use shortener
Disable 2FA for your account's username:
db.accounts.findOneAndUpdate({ username: "user2" },{ $set:{ "totp.enabled":false } })

Account Information Management

patch
https://demo.getlynx.dev/api
/auth/email
Update Email
patch
https://demo.getlynx.dev/api
/auth/password
Update Password
patch
https://demo.getlynx.dev/api
/auth/username
Update Username

Other

post
https://demo.getlynx.dev/api
/auth/newSecret
Get new secret
Last modified 8mo ago