return error for unset oauth2.ClientStore funcs

This commit is contained in:
tobi 2025-03-03 14:33:01 +01:00
commit a676bd3602

View file

@ -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")
}