From 8ac34200c9da27fba89f5ee7d280c2612636e481 Mon Sep 17 00:00:00 2001 From: Oleg Kovalov Date: Mon, 27 Nov 2023 08:38:29 +0100 Subject: [PATCH] Stricter config --- oauth2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oauth2.go b/oauth2.go index 0f80ffe..fe92c5b 100644 --- a/oauth2.go +++ b/oauth2.go @@ -9,6 +9,8 @@ type Config struct { Mode Mode // Mode represents how tokens are represented in requests. RedirectURL string // RedirectURL is the URL to redirect users going through the OAuth flow. Scopes []string // Scope specifies optional requested permissions. + + _ struct{} // enforce explicit field names. } // Mode represents how requests for tokens are authenticated to the server.