Your software will have to authenticate itself when:
Paradex uses JSON Web Tokens (JWTs) to authenticate users.
JWTs are a secure way to transmit information between parties as they are signed by the sender, which allows the recipient to verify the authenticity of the message.
For security reasons JWTs used in Paradex’s authentication mechanism expire every 5 minutes. It is not possible to extend the expiration.
This means that users will need to re-authenticate regularly in order to always have a fresh JWT readily available.
Paradex recommends refreshing JWT well before expiry (e.g., after 3 minutes) to allow multiple retry attempts while still having a valid JWT.
This will help you to avoid interruptions in making REST API calls.
When using WebSocket connections, after the initial authentication, users do not need to re-authenticate again for the lifetime of the connection.
See more regarding Paradex JWT mechanism.
The benefits of using JWT for authentication: