primary/signinを段階的な方法にする #4
Reference in New Issue
Block a user
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?
Summary
primary/signinでは現在ユーザーIDとパスワードを検証してトークンを発行している。
これを、各入力工程ずつのリクエストに置き換える。
Reason
今後多要素認証を導入したりすると扱いにくい形状のため
アカウントがプライベートなサービスではないためユーザーIDは知られてもそれほど問題ない
セッション管理が必要そう?
一時的な識別子をcrypto.randomBytes().toString("hex")で発行すればよさそう