📄️ Sessions: Generating Session Tokens
Sessions in Ductape allow you to track user activity across your products and integrations. By generating session tokens, you gain visibility into customer usage, can debug recurring issues, and recreate user journeys from your backend's perspective. Sessions are optional but highly recommended for advanced analytics and troubleshooting.
📄️ Refreshing Session Tokens
Session tokens can expire or become stale over time. If your application needs to maintain a user's session beyond the original token's validity period, you can use ductape.processor.sessions.refresh({...}) to generate a new token using a valid refresh token.
📄️ Decrypting Session Tokens
You can decrypt a session token using the ductape.processor.sessions.decrypt({...}) method to retrieve the original user-related payload stored when the session was created. This is useful for validating user identity, tracing session state, or referencing contextual information across systems.