Use the auth methods to get IDs to avoid unneeded casts
This commit is contained in:
3
vendor/code.vikunja.io/web/web.go
generated
vendored
3
vendor/code.vikunja.io/web/web.go
generated
vendored
@ -50,7 +50,8 @@ type HTTPError struct {
|
||||
|
||||
// Auth defines the authentication interface used to get some auth thing
|
||||
type Auth interface {
|
||||
AuthDummy()
|
||||
// Most of the time, we need an ID from the auth object only. Having this method saves the need to cast it.
|
||||
GetID() int64
|
||||
}
|
||||
|
||||
// Authprovider is a holder for the implementation of an authprovider by the application
|
||||
|
Reference in New Issue
Block a user