15 lines
331 B
V
15 lines
331 B
V
module authentication
|
|
|
|
import log
|
|
|
|
// Creates and updates, authenticates email authentication sessions
|
|
interface IBackend {
|
|
read_auth_session(string) ?AuthSession
|
|
mut:
|
|
logger &log.Logger
|
|
create_auth_session(AuthSession) !
|
|
update_auth_session(AuthSession) !
|
|
delete_auth_session(string) !
|
|
set_session_authenticated(string) !
|
|
}
|