diff --git a/auth/auth.go b/auth/auth.go index 2742592f2..506fc42ce 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -1,11 +1,6 @@ package auth type ( - Identifiable interface { - Identity() uint64 - Valid() bool - } - Identity struct { identity uint64 } diff --git a/auth/interfaces.go b/auth/interfaces.go new file mode 100644 index 000000000..ad10152cc --- /dev/null +++ b/auth/interfaces.go @@ -0,0 +1,12 @@ +package auth + +type ( + Identifiable interface { + Identity() uint64 + Valid() bool + } + + TokenEncoder interface { + Encode(identity Identifiable) string + } +)