Skip to content

Commit

Permalink
chore: extend ContinueWith type
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceinapple committed Feb 19, 2024
1 parent 9219744 commit 5691a10
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions packages/identity-integration/src/flows/registration.flow.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
import { Identity } from '@ory/kratos-client'
import { UpdateRegistrationFlowBody } from '@ory/kratos-client'
import { RegistrationFlow as KratosRegistrationFlow } from '@ory/kratos-client'
import { UiNodeInputAttributes } from '@ory/kratos-client'

import React from 'react'
import { AxiosError } from 'axios'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { useSearchParams } from 'next/navigation'
import { useRouter } from 'next/navigation'
import { useState } from 'react'
import { useEffect } from 'react'
import { useMemo } from 'react'
import { useCallback } from 'react'

import { FlowProvider } from '../providers'
import { ValuesProvider } from '../providers'
import { ValuesStore } from '../providers'
import { SubmitProvider } from '../providers'
import { useKratosClient } from '../providers'
import { handleFlowError } from './handle-errors.util'
import { Identity } from '@ory/kratos-client'
import { UpdateRegistrationFlowBody } from '@ory/kratos-client'
import { RegistrationFlow as KratosRegistrationFlow } from '@ory/kratos-client'
import { ContinueWith as KratosContinueWith } from '@ory/kratos-client'

import { UiNodeInputAttributes } from '@ory/kratos-client'

import React from 'react'
import { AxiosError } from 'axios'
import { PropsWithChildren } from 'react'
import { FC } from 'react'
import { useSearchParams } from 'next/navigation'
import { useRouter } from 'next/navigation'
import { useState } from 'react'
import { useEffect } from 'react'
import { useMemo } from 'react'
import { useCallback } from 'react'

import { FlowProvider } from '../providers'
import { ValuesProvider } from '../providers'
import { ValuesStore } from '../providers'
import { SubmitProvider } from '../providers'
import { useKratosClient } from '../providers'
import { handleFlowError } from './handle-errors.util'

export interface RegistrationFlowProps {
onError?: (error: { id: string }) => void
returnToUrl?: string
shouldRedirect?: boolean
}

type ContinueWith = {
action: string
type ContinueWith = KratosContinueWith & {
flow?: {
id: string
url?: string
Expand Down

0 comments on commit 5691a10

Please sign in to comment.