Documentation ¶
Index ¶
- func IsStringArrayEqual(a, b []string) bool
- func IsValidEmail(email string) bool
- func IsValidEmailTemplateEventName(eventName string) bool
- func IsValidOrigin(url string) bool
- func IsValidPassword(password string) error
- func IsValidRoles(userRoles []string, roles []string) bool
- func IsValidVerificationIdentifier(identifier string) bool
- func IsValidWebhookEventName(eventName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStringArrayEqual ¶
IsStringArrayEqual validates if string array are equal. This does check if the order is same
func IsValidEmailTemplateEventName ¶
IsValidEmailTemplateEventName function to validate email template events
func IsValidOrigin ¶
IsValidOrigin validates origin based on ALLOWED_ORIGINS
func IsValidPassword ¶
ValidatePassword to validate the password against the following policy min char length: 6 max char length: 36 at least one upper case letter at least one lower case letter at least one digit at least one special character
func IsValidRoles ¶
IsValidRoles validates roles
func IsValidVerificationIdentifier ¶
IsValidVerificationIdentifier validates verification identifier that is used to identify the type of verification request
func IsValidWebhookEventName ¶
IsValidWebhookEventName to validate webhook event name
Types ¶
This section is empty.