12 lines
253 B
Go
12 lines
253 B
Go
|
// Copyright (C) 2022 Storj Labs, Inc.
|
||
|
// See LICENSE for copying information.
|
||
|
|
||
|
package api
|
||
|
|
||
|
import "net/http"
|
||
|
|
||
|
// Auth exposes methods to control authentication process for each endpoint.
|
||
|
type Auth interface {
|
||
|
IsAuthenticated(r *http.Request) error
|
||
|
}
|