middleware icon indicating copy to clipboard operation
middleware copied to clipboard

[firebase - auth] how i can change the message errors?

Open lucaspieran opened this issue 5 months ago • 1 comments

Hello! Is there any way to change the error messages when there is no header and when the token is not valid? Currently the messages are the following

{
    "message": "authorization header is empty"
}

and when its not valid

{
    "message": "failed to verify the requested firebase token: Error: Decoding Firebase ID token failed. Make sure you passed the entire string JWT which represents an ID token. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token. err: Error: token must consist of 3 parts"
}

lucaspieran avatar Sep 06 '24 13:09 lucaspieran