diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:15:13 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-23 18:15:13 +0100 |
| commit | 40053552852cf8c27fe7658b64df001d65b0a65e (patch) | |
| tree | 6f48e819eaec926c894af6d6225ea6d8b36de657 /src/oauth.go | |
| parent | f1e5096b7827d82ab5b2df10080a2ad9223f2665 (diff) | |
Add getting profiles and add openvpn config support
Diffstat (limited to 'src/oauth.go')
| -rw-r--r-- | src/oauth.go | 7 |
1 files changed, 1 insertions, 6 deletions
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() } |
