Skip to main content

require_premium

Function require_premium 

Source
async fn require_premium(client: &PasswordManagerClient) -> Result<()>
Expand description

Enforce the premium-membership precondition for file Sends by inspecting the premium claim on the current user’s access-token JWT (option a from PM-39238). Reads the persisted AUTHENTICATION_TOKENS state — the same source the auth middleware attaches to requests — so no additional token accessor is needed on the client.