Skip to content

Commit

Permalink
rename sdk function for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
remicolin committed Oct 19, 2024
1 parent cadaa3f commit fda3917
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk/src/OpenPassportVerifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export class OpenPassportVerifier extends AttestationVerifier {
return this;
}

setDevMode(devMode: boolean): this {
this.devMode = devMode;
allowMockPassports(): this {
this.devMode = true;
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/tests/web-app/src/app/prove/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Prove() {

const openPassportVerifier = new OpenPassportVerifier('prove_offchain', scope)
.excludeCountries('Finland', 'Norway')
.setDevMode(true)
.allowMockPassports()
.setMinimumAge(12);
return (
<div className="h-screen w-full bg-white flex flex-col items-center justify-center gap-4">
Expand Down

0 comments on commit fda3917

Please sign in to comment.