diff --git a/examples/with-next/pages/index.tsx b/examples/with-next/pages/index.tsx index 9a56cca6..9c28aeba 100644 --- a/examples/with-next/pages/index.tsx +++ b/examples/with-next/pages/index.tsx @@ -19,7 +19,8 @@ const Home = ({ app_id }: InferGetServerSidePropsType onError={error => console.log(error)} onSuccess={response => console.log(response)} app_id={app_id} - verification_level={VerificationLevel.Device} + // verification_level="orb_plus" + verification_level={VerificationLevel.OrbPlus} > {({ open }) => } diff --git a/packages/core/src/lib/utils.ts b/packages/core/src/lib/utils.ts index 8a2d14ed..81aeac5c 100644 --- a/packages/core/src/lib/utils.ts +++ b/packages/core/src/lib/utils.ts @@ -22,6 +22,8 @@ export const verification_level_to_credential_types = (verification_level: Verif return [CredentialType.Orb, CredentialType.Device] case VerificationLevel.Orb: return [CredentialType.Orb] + case VerificationLevel.OrbPlus: + return [CredentialType.Orb] default: throw new Error(`Unknown verification level: ${verification_level}`) } diff --git a/packages/core/src/types/config.ts b/packages/core/src/types/config.ts index 669a1108..a51ddb8a 100644 --- a/packages/core/src/types/config.ts +++ b/packages/core/src/types/config.ts @@ -14,6 +14,7 @@ export enum CredentialType { export enum VerificationLevel { Orb = 'orb', Device = 'device', + OrbPlus = 'orb_plus', } export type IDKitConfig = {