Versions in this module Expand all Collapse all v0 v0.0.1 Dec 28, 2018 Changes in this version + func GetEmail(req *http.Request) string + type Auth struct + func New(db database, signingKey string, jwtExpire int) Auth + func (auth *Auth) GetAuthenticator(w http.ResponseWriter, req *http.Request) + func (auth *Auth) HandleDisableTwoFactor(w http.ResponseWriter, req *http.Request) + func (auth *Auth) HandleLogin(w http.ResponseWriter, req *http.Request) + func (auth *Auth) HandlePrelogin(w http.ResponseWriter, req *http.Request) + func (auth *Auth) HandleRegister(w http.ResponseWriter, req *http.Request) + func (auth *Auth) HandleTwoFactor(w http.ResponseWriter, req *http.Request) + func (auth *Auth) JwtMiddleware(next http.Handler) http.Handler + func (auth *Auth) VerifyAuthenticatorSecret(w http.ResponseWriter, req *http.Request)