better message than token is invalid

This commit is contained in:
Samuel Newman
2025-08-20 20:26:55 +03:00
parent 690f1d8d7f
commit b7725b2408
@@ -140,6 +140,8 @@ function Inner() {
msg`Unable to contact your service. Please check your internet connection and try again.`, msg`Unable to contact your service. Please check your internet connection and try again.`,
), ),
) )
} else if (e?.toString().includes('Token is invalid')) {
setError(_(msg`This confirmation code is not valid. Please try again.`))
} else { } else {
logger.error('Failed to set new password', {safeMessage: e}) logger.error('Failed to set new password', {safeMessage: e})
setError(cleanError(e)) setError(cleanError(e))