From 59e06f8d78791b29e9d03c45311276cace0e981c Mon Sep 17 00:00:00 2001 From: bruno Date: Sun, 1 Nov 2026 11:19:31 -0500 Subject: [PATCH] fix: clarify persistent 401 as a stale API secret, not a clock issue --- .../java/com/shaarit/data/repository/AuthRepositoryImpl.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/shaarit/data/repository/AuthRepositoryImpl.kt b/app/src/main/java/com/shaarit/data/repository/AuthRepositoryImpl.kt index 64f19a1..65795a9 100644 --- a/app/src/main/java/com/shaarit/data/repository/AuthRepositoryImpl.kt +++ b/app/src/main/java/com/shaarit/data/repository/AuthRepositoryImpl.kt @@ -52,8 +52,11 @@ constructor(private val api: ShaarliApi, private val tokenManager: TokenManager) 401, 403 -> Exception( - "HTTP ${e.code()} - Secret API refuse. Copie le champ « Secret API » de " + - "Shaarli (Configuration -> Securite) : ce n'est PAS ton mot de passe " + + "HTTP ${e.code()} - Secret API refuse. L'application a deja reessaye " + + "avec l'horloge du serveur : un 401 persistant signifie que le " + + "secret saisi ne correspond plus a celui affiche ACTUELLEMENT dans " + + "Shaarli. Copie le champ « Secret API » de Shaarli " + + "(Configuration -> Securite) : ce n'est PAS ton mot de passe " + "de connexion. Si tu as utilise « Deconnexion de tous les appareils », " + "le secret a ete regenere et il faut ressaisir le nouveau." )