From 2bd6d37d0ccde858d59c0d246bbe7e684dca23e9 Mon Sep 17 00:00:00 2001 From: andig Date: Thu, 30 Oct 2025 08:22:15 +0100 Subject: [PATCH] chore: fix test --- plugin/auth/oauth.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/auth/oauth.go b/plugin/auth/oauth.go index 1785459b2..48f14f6f6 100644 --- a/plugin/auth/oauth.go +++ b/plugin/auth/oauth.go @@ -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") }