get token from OAuth provider

This commit is contained in:
2026-08-06 14:46:08 -04:00
parent 4644a7d3f4
commit 16a38c972c
4 changed files with 28 additions and 2 deletions
+2
View File
@@ -10,6 +10,8 @@ import (
"golang.org/x/oauth2"
)
var tokenStore TokenStore
func generateState() (string, error) {
b := make([]byte, 32)
if _, err := rand.Read(b); err != nil {