Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/with-next/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const Home = ({ app_id }: InferGetServerSidePropsType<typeof getServerSideProps>
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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make it so it's fetched from a query string param? (Device by default?)

>
{({ open }) => <button onClick={open}>Open IDKit</button>}
</IDKitWidget>
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export enum CredentialType {
export enum VerificationLevel {
Orb = 'orb',
Device = 'device',
OrbPlus = 'orb_plus',
}

export type IDKitConfig = {
Expand Down