The Supabase plugin provides various utility functions for common operations.
Validates whether a given string is a properly formatted email address.
bool ValidateEmailFormat(FString Email)
| Parameter | Type | Description |
|---|---|---|
| FString | The email address to validate |
Returns: true if the email format is valid, false otherwise.
if (SupabaseClient->ValidateEmailFormat("user@example.com"))
{
// Valid email format
}
Validates whether a given string is a properly formatted phone number.
bool ValidatePhoneFormat(FString Phone)
| Parameter | Type | Description |
|---|---|---|
| Phone | FString | The phone number to validate |
Returns: true if the phone format is valid, false otherwise.
Validates a password against the current security policy (minimum length, special characters, numbers, uppercase).
bool ValidatePasswordStrength(FString Password)
| Parameter | Type | Description |
|---|---|---|
| Password | FString | The password to validate |
Returns: true if the password meets all requirements, false otherwise.
The password policy checks:
MinPasswordLength)bRequireSpecialCharacters is true)bRequireNumbers is true)bRequireUppercase is true)Generates a cryptographically random secure password that meets all policy requirements.
FString GenerateSecurePassword(int32 Length = 16)
| Parameter | Type | Default | Description |
|---|---|---|---|
| Length | int32 | 16 | Desired password length (minimum 8) |
Returns: A randomly generated password string meeting all validation requirements.
Returns the MIME content type for a given file extension.
FString GetContentTypeFromExtension(FString Extension)
| Parameter | Type | Description |
|---|---|---|
| Extension | FString | File extension (e.g., ".png", ".jpg", ".json") |
Returns: MIME content type string (e.g., "image/png", "application/json").
Validates a storage bucket name against Supabase naming rules.
bool IsValidBucketName(FString BucketName)
| Parameter | Type | Description |
|---|---|---|
| BucketName | FString | The bucket name to validate |
Returns: true if the name is valid, false otherwise.
Validates a file path for Supabase Storage.
bool IsValidFilePath(FString FilePath)
| Parameter | Type | Description |
|---|---|---|
| FilePath | FString | The file path to validate |
Returns: true if the path is valid, false otherwise.
Checks if the Supabase connection is currently active and responsive.
bool IsConnectionHealthy()
Returns: true if the connection is healthy, false otherwise.
Checks if a file upload is currently in progress.
bool IsUploadInProgress()
Returns: true if an upload is active, false otherwise.
Gets the current upload progress as a percentage.
float GetUploadProgress()
Returns: Upload progress percentage (0.0 to 100.0).
Checks if an OAuth authentication flow is currently in progress.
bool IsOAuthInProgress()
Returns: true if OAuth is active, false otherwise.
Gets the unique entity ID for a persistence component.
FString GetEntityId()
Returns: The entity's unique identifier string.
Gets the Supabase table name for a persistence entity.
FString GetTableName()
Returns: The database table name for this entity.
Generates a new unique entity ID for this persistence component.
void RegenerateEntityId()
Warning: This will create a new database entry. Use with caution on existing entities.
Version: 1.4.1 | Last Updated: May 2026