Salesforce only shows debug logs from managed packages if you're logged in via the appropriate "grant support access" feature from your licensing org's licensing console. That's okay so far...
My question however is, if it is possible to programatically determine (e.g. via Apex) if the current user's session is one of these support login sessions with access to the package's debug logs.
My goal is to create a page that shows advanced information to a support user which should otherwise not be accessible.