minor auth refactor, some tidy-up

This commit is contained in:
ari melody 2026-06-28 16:59:41 +01:00
parent 75534da702
commit 21b7a3926b
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
3 changed files with 63 additions and 45 deletions

View file

@ -5,7 +5,6 @@ import (
"os"
"github.com/pelletier/go-toml/v2"
"golang.org/x/oauth2"
)
type (
@ -19,7 +18,6 @@ type (
Host string `toml:"host" comment:"Address to host OAuth2 redirect flow"`
RedirectUri string `toml:"redirect_uri" comment:"URI to use in Google OAuth2 flow"`
Google GoogleConfig `toml:"google"`
Token *oauth2.Token `toml:"token" comment:"This section is filled in automatically on a successful authentication flow."`
}
)