From 2fc994a73a1a50469c09544a17a2cbd9a6e8c67b Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 15 Jul 2024 10:16:11 +0200 Subject: Client: Move DiscoveryStartup to correct file and check client_id --- exports/exports.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'exports') 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 -- cgit v1.2.3