The Shopify Python API library provides helper methods to decode session tokens. You can use the decode_from_header function to extract and decode a session token from an HTTP Authorization header.