diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-07-15 10:16:11 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-07-17 14:00:03 +0000 |
| commit | 2fc994a73a1a50469c09544a17a2cbd9a6e8c67b (patch) | |
| tree | 3184175e36383655f9a4a63ec5c1be03c11d1626 /exports | |
| parent | 6f2b23fcd476848368a027cc5ad15a300bc25fa8 (diff) | |
Client: Move DiscoveryStartup to correct file and check client_id
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/exports.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/exports/exports.go b/exports/exports.go index 36372b4..f1b55cd 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -1029,7 +1029,6 @@ func getCookie(c C.uintptr_t) (*cookie.Cookie, error) { return v, nil } - // DiscoveryStartup does a discovery request in the background // // The `refresh` argument is a callback that is called when the refreshing is done @@ -1042,13 +1041,13 @@ func DiscoveryStartup(refresh C.RefreshList) *C.char { if stateErr != nil { return getCError(stateErr) } - state.DiscoveryStartup(func() { + startupErr := state.DiscoveryStartup(func() { if refresh == nil { return } C.call_refresh_list(refresh) }) - return nil + return getCError(startupErr) } // SetTokenHandler sets the token getters and token setters for OAuth |
