-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One Time Password example #116
Conversation
let computedTOTP = TOTP(secret: otpVerificationSession.secret).compute(date: .now - 15.0) | ||
let computedTOTP2 = TOTP(secret: otpVerificationSession.secret).compute(date: .now + 15.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very much a nit, but theoretically the distance between .now
the first and second time can theoretically change enough to create an issue. I don't think we care for an example, but wanted to give you that info.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-ish - we need to wait for hb-auth and those discussions
Updated to include latest from auth. |
Standard username, password authentication which can be extended to include a TOTP token input
This uses the session PR in hummingbird-auth