Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucaspieran opened this issue Sep 6, 2024 · 1 comment
Open

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

lucaspieran opened this issue Sep 6, 2024 · 1 comment

Comments

@lucaspieran
Copy link

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"
}
@yusukebe
Copy link
Member

Hi @lucaspieran

@Code-Hex Can you answer this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants