mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
lower age check limit from 10y to 1y (#242)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user