chore: fix test

This commit is contained in:
andig 2025-10-30 08:22:15 +01:00
parent 5536f2d4bd
commit 2bd6d37d0c

View file

@ -88,8 +88,9 @@ func NewOauthFromConfig(ctx context.Context, other map[string]any) (oauth2.Token
}
var _ api.AuthProvider = (*OAuth)(nil)
var _ oauth2.TokenSource = (*OAuth)(nil)
func NewOauth(ctx context.Context, name, device string, oc *oauth2.Config, opts ...oauthOption) (oauth2.TokenSource, error) {
func NewOauth(ctx context.Context, name, device string, oc *oauth2.Config, opts ...oauthOption) (*OAuth, error) {
if name == "" {
return nil, errors.New("instance name must not be empty")
}