debug secret parsing

This commit is contained in:
Ruidy 2024-08-08 20:47:01 +02:00
parent ac10e65097
commit 2b9e5cc7e8
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -25,6 +25,7 @@ type Service struct {
func NewService(ctx context.Context, credJson string, opts ...Option) (*Service, error) { func NewService(ctx context.Context, credJson string, opts ...Option) (*Service, error) {
b := []byte(credJson) b := []byte(credJson)
log.Println(credJson)
config, err := google.ConfigFromJSON(b, calendar.CalendarReadonlyScope) config, err := google.ConfigFromJSON(b, calendar.CalendarReadonlyScope)
if err != nil { if err != nil {