lower age check limit from 10y to 1y (#242)

This commit is contained in:
turboblitz
2025-02-27 22:05:33 -07:00
committed by GitHub
parent 563f8f9412
commit 79bdfb67d5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@selfxyz/core",
"version": "0.0.5",
"version": "0.0.6",
"repository": {
"type": "git",
"url": "https://github.com/celo-org/self"

View File

@@ -200,8 +200,8 @@ export class SelfBackendVerifier {
}
setMinimumAge(age: number): this {
if (age < 10) {
throw new Error('Minimum age must be at least 10 years old');
if (age <= 0) {
throw new Error('Minimum age must be positive');
}
if (age > 100) {
throw new Error('Minimum age must be at most 100 years old');