MCPcopy
hub / github.com/ory/kratos / InitializeRecoveryFlowViaAPI

Function InitializeRecoveryFlowViaAPI

pkg/testhelpers/selfservice_verification.go:172–180  ·  view source on GitHub ↗
(t *testing.T, client *http.Client, ts *httptest.Server)

Source from the content-addressed store, hash-verified

170}
171
172func InitializeRecoveryFlowViaAPI(t *testing.T, client *http.Client, ts *httptest.Server) *kratos.RecoveryFlow {
173 publicClient := NewSDKCustomClient(ts, client)
174
175 rs, _, err := publicClient.FrontendAPI.CreateNativeRecoveryFlow(context.Background()).Execute()
176 require.NoError(t, err)
177 assert.NotEmpty(t, rs.Active)
178
179 return rs
180}
181
182func RecoveryMakeRequest(
183 t *testing.T,

Calls 3

NewSDKCustomClientFunction · 0.85
ExecuteMethod · 0.65