Added oauth for gitea

This commit is contained in:
2025-09-15 19:10:49 +03:30
parent a7ef859c43
commit 001e3b66cb
6 changed files with 186 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"CatsOfMastodonBotGo/internal/auth"
"CatsOfMastodonBotGo/internal/config"
"CatsOfMastodonBotGo/internal/database"
"CatsOfMastodonBotGo/internal/domain"
@@ -24,6 +25,8 @@ func main() {
// Not needed but anyways
services.InitImgKitHelper()
auth.InitGiteaOauth2Token()
ticker := time.NewTicker(10 * time.Minute)
runFetchPosts := func() {