Personal Git forge.

Code git clone ssh://git.poy.ooo:6969/~poyo/farga ZIP
lib/oauth2/hackatime.go / 597B #a98aa3dd
Raw
package oauth2import (	"farga/config"	"fmt"	"golang.org/x/oauth2")func HackatimeConfig(config config.Config) *oauth2.Config {	return &oauth2.Config{		ClientID:     config.HackatimeClientID,		ClientSecret: config.HackatimeClientSecret,		RedirectURL:  fmt.Sprintf("%s/auth/hackatime/callback", config.PublicUrl),		Scopes: []string{			"profile", // slack ID, username			"read",    // access to projects, coding time		},		Endpoint: oauth2.Endpoint{			AuthURL:  "https://hackatime.hackclub.com/oauth/authorize",			TokenURL: "https://hackatime.hackclub.com/oauth/token",		},	}}