12 Errors and Troubleshooting
This section outlines the error handling and troubleshooting options available to you when working with Oracle Backend for Firebase services. Errors may arise during authentication, rule evaluation, metadata resolution, or backend execution. Oracle Backend for Firebase provides structured error responses and diagnostic metadata to assist in debugging.
Topics:
12.1 Authentication Error Format
All authentication-related errors are returned in a consistent JSON structure:
{
"error": "<error message>"
}
These messages help developers identify issues, such as token validation failures, missing fields, or unsupported sign-in providers.
Parent topic: Errors and Troubleshooting
12.2 Common Authentication Errors
| Error Scenario | Cause | Resolution |
|---|---|---|
|
Invalid JWT token |
Token is expired, malformed, or unverifiable |
Re-authenticate and obtain a valid token |
|
Missing |
Request payload lacks required authentication context |
Ensure |
|
Unsupported sign-in provider |
|
Use a supported provider (For example,
|
|
Missing required token fields |
Fields like |
Confirm that the token structure matches expected format |
|
Token verification failure |
Signature cannot be verified using backend crypto packages |
Check token issuer and signing method |
|
Unauthorized access |
User lacks permission based on rule |
Confirm |
|
Invalid JWT token |
Token expired or malformed |
Re-authenticate and obtain a new token |
Parent topic: Errors and Troubleshooting