rename sdk function for clarity

This commit is contained in:
turnoffthiscomputer
2024-10-19 13:15:14 -07:00
parent cadaa3f72a
commit fda3917ba4
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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">