2FA #5
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: StardustShard/dolltags#5
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TOTP and maybe WebAuthn but only as 2FA, not passwordless login
totp_rs looks decent and mature enough, and i'd only need to add a table to hold the totps and recovery keys (one recovery key per TOTP, can be regenerated in the settings if the user loses theirs; lil form to check the recovery key? p2 or lil addition if i feel like it for now).
already have a QrCode generation lib and QrCode image integration on the site so i can build on that; the lib does seem to depend on and reexport a qrcode lib, may want to see if it's possible to not include that if i go my route.
table could look like so
primary key of (user_id, otp_method)
onboarding would be pretty standard:
revocation would be a simple "are you sure?" page; there already are iirc so the revocation page could be made a bit more generic to avoid repeating and drifting on design