This implementation is insufficient, but will do for now. The filter needs to check for expiration of the token and renew it appropriately, otherwise users of the SDK will have to explicitly check for token expiration between every SDK call, which is impractical.