From 1859a3c58e86886740c2f8a70354ca84f0786174 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Mon, 26 Feb 2024 09:41:28 -0700 Subject: [PATCH] Removed JsonObject type for map[string]any --- internal/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/client.go b/internal/client.go index 2fa4b21..dabc734 100644 --- a/internal/client.go +++ b/internal/client.go @@ -72,7 +72,7 @@ func (client *Client) InitiateLoginFlow(loginUrl string) error { return nil } -func (client *Client) FetchFlowData(flowUrl string) (JsonObject, error) { +func (client *Client) FetchFlowData(flowUrl string) (map[string]any, error) { //kratos: GET /self-service/login/flows?id={flowId} // replace {id} in string with actual value @@ -93,7 +93,7 @@ func (client *Client) FetchFlowData(flowUrl string) (JsonObject, error) { return nil, fmt.Errorf("failed to read response body: %v", err) } - var flowData JsonObject + var flowData map[string]any err = json.Unmarshal(body, &flowData) if err != nil { return nil, fmt.Errorf("failed to unmarshal flow data: %v", err)