Récupère le token d'authentification depuis le localStorage
Le token d'authentification ou null s'il n'existe pas ou si on est côté serveur
const token = getAuthToken();if (token) { // Utiliser le token pour l'authentification} Copy
const token = getAuthToken();if (token) { // Utiliser le token pour l'authentification}
Récupère le token d'authentification depuis le localStorage