tokidoki/auth/interface.go
2022-02-21 10:55:02 +01:00

12 lines
231 B
Go

package auth
import (
"net/http"
)
// Abstracts the authentication backend for the server.
type AuthProvider interface {
// Returns HTTP middleware for performing authentication.
Middleware() func(http.Handler) http.Handler
}