mirror of
https://github.com/1f349/lotus.git
synced 2024-12-22 08:04:06 +00:00
Remove unused dependency
This commit is contained in:
parent
906f693ea3
commit
0631664df4
@ -1,7 +1,6 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"crypto/subtle"
|
||||
"errors"
|
||||
"github.com/1f349/mjwt"
|
||||
"github.com/1f349/mjwt/auth"
|
||||
@ -20,7 +19,6 @@ type AuthCallback func(rw http.ResponseWriter, req *http.Request, params httprou
|
||||
// error message or continues to the next handler
|
||||
type AuthChecker struct {
|
||||
Verify mjwt.Verifier
|
||||
Aud string
|
||||
}
|
||||
|
||||
// Middleware is a httprouter.Handle layer to authenticate requests
|
||||
|
@ -47,7 +47,7 @@ func main() {
|
||||
log.Fatalf("[Lotus] Failed to load MJWT verifier public key from file '%s': %s", filepath.Join(wd, "signer.public.pem"), err)
|
||||
}
|
||||
|
||||
userAuth := &api.AuthChecker{Verify: verify, Aud: conf.Audience}
|
||||
userAuth := &api.AuthChecker{Verify: verify}
|
||||
srv := api.SetupApiServer(conf.Listen, userAuth, &conf.SendMail, &conf.Imap)
|
||||
log.Printf("[Lotus] Starting API server on: '%s'\n", srv.Addr)
|
||||
go utils.RunBackgroundHttp("Lotus", srv)
|
||||
|
Loading…
Reference in New Issue
Block a user