Make_Auth.1-M
val serialize : t -> Base.string
serialize
is to make a string
from t
to store in a session between requests. It should represent entity in a way allowing to regain it later with deserialize
val deserialize : Base.string -> ( t, Base.Error.t ) Base.Result.t
deserialize
is to make t
from string
to use it in handlers. The string
should be created by serialize
. Returns: Ok t
if deserialization was successful or Error string
if an error occured
val identificate :
Dream.request ->
( t, Base.Error.t ) Base.Result.t Dream.promise
identificate
is to define which user is trying to authenticate. Retrieves its representation or returns an error