(email: string)
| 28 | } |
| 29 | |
| 30 | export const isValidEmail = (email: string): boolean => { |
| 31 | const emailRegex = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; |
| 32 | return emailRegex.test(email); |
| 33 | }; |
| 34 | |
| 35 | /** |
| 36 | * Converts base64 string to Uint8Array on the web |