TOTP.Make
Make
creates a strategy for a provided model with provided responses.
module V : FPauth_core.Auth_sign.VARIABLES with type entity = M.t
type entity = M.t
val call :
Dream.request ->
entity ->
entity FPauth_core.Static.StratResult.t Lwt.t
call
is the main function of the strategy. It needs "totp_code" param, otherwise it is skipped. Verifies, that the code is correct for user's secret.
routes
provide these routes in "/totp" scope:
See TOTP.name