mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
341 B
Go
19 lines
341 B
Go
package bootstrap
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/synctv-org/synctv/internal/conf"
|
|
"github.com/synctv-org/synctv/internal/provider"
|
|
)
|
|
|
|
func InitProvider(ctx context.Context) error {
|
|
for op, v := range conf.Conf.OAuth2 {
|
|
err := provider.InitProvider(op, v.ClientID, v.ClientSecret)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|