From 084720276b95efbd4d4f55ffd92a0e6e8f7e7aa6 Mon Sep 17 00:00:00 2001 From: 0xPenryn Date: Tue, 13 Feb 2024 08:45:46 -0600 Subject: [PATCH 1/2] feat: support orb_plus VerificationLevel --- packages/core/src/lib/utils.ts | 2 ++ packages/core/src/types/config.ts | 1 + 2 files changed, 3 insertions(+) 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 = { From 0837c38040eabc0a71aef92187e5bae7befa8030 Mon Sep 17 00:00:00 2001 From: 0xPenryn Date: Wed, 14 Feb 2024 10:50:02 -0600 Subject: [PATCH 2/2] use orb plus in next example --- examples/with-next/pages/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }) => }