From 9696efde02e6bf920fbca28d476fd63fa33cffd1 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sun, 16 Feb 2020 19:36:45 +0000 Subject: [PATCH] reorder auth interface (#1204) --- auth/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/auth.go b/auth/auth.go index 92010501..61567079 100644 --- a/auth/auth.go +++ b/auth/auth.go @@ -7,8 +7,6 @@ import ( // Auth providers authentication and authorization type Auth interface { - // String to identify the package - String() string // Init the auth package Init(opts ...Option) error // Options returns the options set @@ -19,6 +17,8 @@ type Auth interface { Revoke(token string) error // Validate an account token Validate(token string) (*Account, error) + // String returns the implementation + String() string } // Resource is an entity such as a user or