Don't retry Axios if a token decryption failed

If a token decryption failed, it will emit a HTTP 500.

We should not retry Axios in this case but rather fail.

Note: a token decryption failed should not throw a HTTP 500 but another error code (HTTP 401?)
So maybe this fix is plainly wrong.
This commit is contained in:
David Négrier 2021-12-08 10:58:53 +01:00
parent 1e6ce4dec8
commit ff77a18262
2 changed files with 9 additions and 0 deletions

View file

@ -259,6 +259,9 @@ message BanUserMessage{
string message = 2;
}
/**
* Messages going from back and pusher to the front
*/
message ServerToClientMessage {
oneof message {
BatchMessage batchMessage = 1;