(t *testing.T, client *http.Client, ts *httptest.Server)
| 170 | } |
| 171 | |
| 172 | func 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 | |
| 182 | func RecoveryMakeRequest( |
| 183 | t *testing.T, |