FPauth_strategies.TOTPTOTP is a time-based One-Time Password strategy. User's identity is verified via a password which is limited for a limited time only.
Requires "totp_code" param, otherwise skipped. Provides these routes in "/totp" scope:
module type MODEL = sig ... endMODEL contains requirements for user model in order to use the strategy
module type RESPONSES = sig ... endRESPONSES contains data representations for certain events
module Make
(R : RESPONSES)
(M : MODEL)
(V : FPauth_core.Auth_sign.VARIABLES with type entity = M.t) :
sig ... endMake creates a strategy for a provided model with provided responses.
module JSON_Responses : RESPONSESModule with responses for TOTP in JSON format
module type HTML_settings = sig ... endThis module contains such settings as app name for titles
module Make_HTML_Responses (S : HTML_settings) : RESPONSESThis functor creates module with RESPONSES in HTML format
val make_html_responses : ?app_name:string -> unit -> (module RESPONSES)make_html_responses ~app_name () is a convinience function for creating HTML response module without HTML_settings. Returns first-class module.