Skip to content

Commit

Permalink
feat: set package privacy & send credential_types by default (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtfh committed Nov 27, 2023
1 parent b7b6d44 commit 8a38ff3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0-alpha.0",
"homepage": "https://docs.worldcoin.org/id/idkit",
"license": "MIT",
"private": false,
"description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/bridge.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { create } from 'zustand'
import { buffer_decode } from './lib/utils'
import type { IDKitConfig } from '@/types/config'
import { VerificationState } from '@/types/bridge'
import type { AppErrorCodes } from '@/types/bridge'
import type { ISuccessResult } from '@/types/result'
import { encodeAction, generateSignal } from '@/lib/hashing'
import { CredentialType, type IDKitConfig } from '@/types/config'
import { decryptResponse, encryptRequest, exportKey, generateKey } from '@/lib/crypto'

const DEFAULT_BRIDGE_URL = 'https://bridge.worldcoin.org'
Expand Down Expand Up @@ -78,7 +78,7 @@ export const useWorldBridgeStore = create<WorldBridgeStore>((set, get) => ({
iv,
JSON.stringify({
app_id,
credential_types,
credential_types: credential_types ?? [CredentialType.Orb],
action_description,
action: encodeAction(action),
signal: generateSignal(signal).digest,
Expand Down
1 change: 1 addition & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0-alpha.0",
"homepage": "https://docs.worldcoin.org/id/idkit",
"license": "MIT",
"private": false,
"description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions packages/standalone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0-alpha.0",
"homepage": "https://docs.worldcoin.org/id/idkit",
"license": "MIT",
"private": false,
"description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 8a38ff3

Please sign in to comment.