4 lines
108 B
JavaScript
4 lines
108 B
JavaScript
|
|
export function generateOTP(length = 6) {
|
||
|
|
return Math.floor(100000 + Math.random() * 900000).toString()
|
||
|
|
}
|