mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Removed JsonObject type for map[string]any
This commit is contained in:
parent
1de4d3a5d5
commit
1859a3c58e
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ func (client *Client) InitiateLoginFlow(loginUrl string) error {
|
||||||
return nil
|
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}
|
//kratos: GET /self-service/login/flows?id={flowId}
|
||||||
|
|
||||||
// replace {id} in string with actual value
|
// 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)
|
return nil, fmt.Errorf("failed to read response body: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
var flowData JsonObject
|
var flowData map[string]any
|
||||||
err = json.Unmarshal(body, &flowData)
|
err = json.Unmarshal(body, &flowData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to unmarshal flow data: %v", err)
|
return nil, fmt.Errorf("failed to unmarshal flow data: %v", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue