tokidoki/auth/null_stub.go
Conrad Hoffmann 1d871b000a Add a "null" auth backend
Not built by default, but can be added with `go build -tags nullauth`.
Enabled by running tokidoki with `-auth.url null://`. Very useful for
simpler debugging when you don't want manage test accounts with actual
passwords.
2024-02-02 22:34:15 +01:00

12 lines
147 B
Go

//go:build !nullauth
package auth
import (
"errors"
)
func NewNull() (AuthProvider, error) {
return nil, errors.New("NullAuth is disabled")
}