mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-23 06:56:16 -06:00
return error for unset oauth2.ClientStore funcs
This commit is contained in:
parent
469bd75999
commit
a676bd3602
1 changed files with 3 additions and 2 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue