# Packages

No description provided by the author

# Functions

ComparePassword compares a plain-text password with a hashed password and returns true if they match.
CreateToken creates a JSON Web Token (JWT) with the provided user information, private key, and expiry duration.
createUser creates a new user in Firebase Authentication with the provided email and password.
DecodePublicKeyFromPem decodes a PEM-encoded public key and returns an *rsa.PublicKey.
DeleteUser deletes a user from Firebase Authentication using the provided user ID.
EncodePublicKeyToPem encodes the given RSA public key to PEM format.
GenerateOTP generates a random one-time password (OTP) of the specified length.
GenerateRandomPassword generates a random password with the specified length.
GenerateToken generates a random token of length 32 using the characters specified in the constants.KeyRandomTokenVerification.
GetUserIDToken retrieves the user ID token and returns a SocialResponse object containing user information.
GetUsernameFromEmail extracts the username from the given email address.
GetUserUIDByEmail retrieves a user's UID by their email address.
HashedPasswordOld generates a hashed password using bcrypt with the provided password and salt.
HashPassword generates a salted and hashed password using bcrypt.
No description provided by the author
HidePhoneNumber hides the first six digits of the given phone number and only shows the last four digits.
IdentifyType identifies the type of the given identification string.
NullInt16ToString converts a sql.NullInt16 to an int.
NullStringToString converts a sql.NullString to a string.
RandomEmail generates a random email.
RandomExpireDuration generates a random expiration duration based on the given number of days.
RandomKeyPair generates a random RSA key pair.
RandomPassword generates a random password.
SendEmail sends an email using the configured SMTP settings.
UpdateUserEmail updates the email address of a user in Firebase Authentication.
VerifyToken verifies the authenticity of a JWT token using the provided public key.

# Structs

No description provided by the author