From 40053552852cf8c27fe7658b64df001d65b0a65e Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Mar 2022 18:15:13 +0100 Subject: Add getting profiles and add openvpn config support --- src/oauth.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/oauth.go') diff --git a/src/oauth.go b/src/oauth.go index f0d5b4a..291a409 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -269,12 +269,7 @@ func (eduvpn *VPNState) FinishOAuth() error { return oauth.getTokensWithCallback() } -func (eduvpn *VPNState) EnsureTokensOAuth() error { - oauth := eduvpn.Server.OAuth - if oauth == nil { - panic("invalid oauth state") - } - +func (oauth *OAuth) EnsureTokens() error { if oauth.isTokensExpired() { return oauth.getTokensWithRefresh() } -- cgit v1.2.3