summaryrefslogtreecommitdiff
path: root/src/oauth.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-21 14:39:49 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-21 14:39:49 +0200
commitf794ea95eb49a4f92ddd16307d70f6cad0f6a768 (patch)
tree5eb56dcda154375eedc2478055cfe07d0b4b7686 /src/oauth.go
parent7c284019f1e48ddd37b0f047b50564f069caf379 (diff)
Discovery: Rollback preventions and hourly updates for servers
Diffstat (limited to 'src/oauth.go')
-rw-r--r--src/oauth.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/oauth.go b/src/oauth.go
index 96ce8b2..08ec07e 100644
--- a/src/oauth.go
+++ b/src/oauth.go
@@ -9,7 +9,6 @@ import (
"fmt"
"net/http"
"net/url"
- "time"
)
// Generates a random base64 string to be used for state
@@ -74,11 +73,6 @@ type OAuthExchangeSession struct {
Server http.Server
}
-func GenerateTimeSeconds() int64 {
- current := time.Now()
- return current.Unix()
-}
-
// Struct that defines the json format for /.well-known/vpn-user-portal"
type OAuthToken struct {
Access string `json:"access_token"`