From a676bd3602a6e062ae494e3fa39c490beb2935dc Mon Sep 17 00:00:00 2001 From: tobi Date: Mon, 3 Mar 2025 14:33:01 +0100 Subject: [PATCH] return error for unset oauth2.ClientStore funcs --- internal/oauth/clientstore.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/oauth/clientstore.go b/internal/oauth/clientstore.go index 1191d798d..17de0e342 100644 --- a/internal/oauth/clientstore.go +++ b/internal/oauth/clientstore.go @@ -21,6 +21,7 @@ import ( "context" "codeberg.org/superseriousbusiness/oauth2/v4" + "codeberg.org/superseriousbusiness/oauth2/v4/errors" "github.com/superseriousbusiness/gotosocial/internal/state" ) @@ -41,9 +42,9 @@ func (cs *clientStore) GetByID(ctx context.Context, clientID string) (oauth2.Cli } func (cs *clientStore) Set(_ context.Context, _ string, _ oauth2.ClientInfo) error { - return nil + return errors.New("func oauth2.ClientStore.Set not implemented") } func (cs *clientStore) Delete(_ context.Context, _ string) error { - return nil + return errors.New("func oauth2.ClientStore.Delete not implemented") }