A JWT token that, unlike the one from the authentication service, never expires. It stays valid until you revoke it and generate a new one.
Before you start
- Have your SW account credentials at hand. Everything happens inside the ADT (CFDI Stamp Management) portal.
- Pick the environment. Each portal has its own token: the test one doesn’t work in production.
💡 Remember: the token is your access key to consume the service. Keep a security policy around it.
URL’s
ADT portal for each environment. Sign in with the credentials of that same environment.
🛠️ Test:
https://portal.test.sw.com.mx
🚀 Production:
https://portal.sw.com.mx
Infinite token in the ADT
Two tasks from the same screen. Pick one and follow the steps; the screenshot on the right matches the active step.
Obtain
-
Configuration
In the ADT left side panel, select “Configuración”. -
Access Credentials
Select “Credenciales de Acceso”. Click “Mostrar” to see the infinite token or “Copiar” to copy it.
Revoke & regenerate
-
Configuration
In the ADT left side panel, select “Configuración”. -
Access Credentials
Select the “Credenciales de Acceso” option. -
Regenerate
Click “Regenerar”. A message asks you to confirm the revocation and regeneration of the token. -
Confirmation
Once the process finishes, a confirmation message appears.
⚠️ Warning: regenerating is irreversible. Don’t proceed unless strictly necessary.