chore: fix test
This commit is contained in:
parent
5536f2d4bd
commit
2bd6d37d0c
1 changed files with 2 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue