@worldcoin/idkit
Version:
The identity SDK. Privacy-preserving identity and proof of personhood with World ID.
29 lines (26 loc) • 1.12 kB
text/typescript
import useIDKit from './hooks/useIDKit'
import IDKitWidget from '@/components/IDKitWidget/index'
import type { WidgetProps, Config } from '@/types/config'
import { solidityEncode } from '@worldcoin/idkit-core/hashing'
import { verifyCloudProof } from '@worldcoin/idkit-core/backend'
import type { IVerifyResponse } from '@worldcoin/idkit-core/backend'
import type { ISuccessResult, IErrorState } from '@worldcoin/idkit-core'
import { VerificationLevel, VerificationState } from '@worldcoin/idkit-core'
import { setLocalizationConfig, getLocalizationConfig, getCurrentLanguage, getSupportedLanguages } from '@/lang'
import type { SupportedLanguage } from '@/lang'
export {
IDKitWidget,
useIDKit,
solidityEncode,
verifyCloudProof,
VerificationLevel,
VerificationState,
setLocalizationConfig,
getLocalizationConfig,
getCurrentLanguage,
getSupportedLanguages,
}
export type { ISuccessResult, IErrorState, IVerifyResponse, Config, WidgetProps, SupportedLanguage }
// Session API
export { useSession } from '@/hooks/useSession'
export type { UseSessionConfig, UseSessionResult } from '@/hooks/useSession'